Skip to content

Commit

Permalink
Add convenience var for testing only certain paths
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Apr 19, 2022
1 parent 7d4542b commit c00fb02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PHP ?= '8.1'
UP ?= 1
DOWN ?= 1
TEST ?=

docs:
wget http://apigen.org/apigen.phar
Expand All @@ -19,5 +20,5 @@ down:

test:
[ $(UP) -eq 1 ] && make up || true
$(eval cmd='docker-compose run $(PHP) env XDEBUG_MODE=coverage vendor/bin/phpunit')
$(eval cmd='docker-compose run $(PHP) env XDEBUG_MODE=coverage vendor/bin/phpunit $(TEST)')
eval $(cmd); status=$$?; [ $(DOWN) -eq 1 ] && make down; exit $$status

0 comments on commit c00fb02

Please sign in to comment.