Makefile 381 B

12345678910111213
  1. .PHONY: test
  2. test:
  3. ./vendor/bin/phpunit --coverage-text
  4. .PHONY: generate
  5. generate:
  6. php bin/user_agent_sorter.php > tests/user_agents.tmp.json && mv tests/user_agents.tmp.json tests/user_agents.json
  7. php bin/constant_generator.php
  8. .PHONY: init
  9. init:
  10. php bin/init_user_agent.php > tests/user_agents.tmp.json && mv tests/user_agents.tmp.json tests/user_agents.json
  11. make generate