Makefile 383 B

123456789101112131415161718192021
  1. all: clean test
  2. test:
  3. vendor/bin/phpunit $(TEST)
  4. coverage:
  5. vendor/bin/phpunit --coverage-html=artifacts/coverage $(TEST)
  6. view-coverage:
  7. open artifacts/coverage/index.html
  8. clean:
  9. rm -rf artifacts/*
  10. .PHONY: docker-login
  11. docker-login:
  12. docker run -t -i -v $(shell pwd):/opt/psr7 ringcentral-psr7 /bin/bash
  13. .PHONY: docker-build
  14. docker-build:
  15. docker build -t ringcentral-psr7 .