github-counter/vendor/donatj/phpuseragentparser/Makefile

13 lines
381 B
Makefile
Raw Normal View History

2020-07-22 12:54:04 +02:00
.PHONY: test
test:
./vendor/bin/phpunit --coverage-text
.PHONY: generate
generate:
php bin/user_agent_sorter.php > tests/user_agents.tmp.json && mv tests/user_agents.tmp.json tests/user_agents.json
php bin/constant_generator.php
.PHONY: init
init:
php bin/init_user_agent.php > tests/user_agents.tmp.json && mv tests/user_agents.tmp.json tests/user_agents.json
make generate