Skip to content

Commit

Permalink
Makefile: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Mar 13, 2023
1 parent 285cfc8 commit c82f409
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
tester = vendor/bin/tester
src_dir = src/
tester_bin = vendor/bin/tester
tests_dir = tests/
coverage_name = $(tests_dir)coverage.html
php_ini = $(tests_dir)php-unix.ini
php_bin = php
phpstan_bin = phpstan

.PHONY: test coverage clean
.PHONY: test coverage clean phpstan
test:
@$(tester) -p $(php_bin) -c $(php_ini) $(tests_dir)
@$(tester_bin) -p $(php_bin) -C $(tests_dir)

coverage:
@$(tester) -p $(php_bin) -c $(php_ini) --coverage $(coverage_name) --coverage-src src/ $(tests_dir)
@$(tester_bin) -p $(php_bin) -C -d zend_extension=xdebug --coverage $(coverage_name) --coverage-src $(src_dir) $(tests_dir)

clean:
@rm -f $(coverage_name)

phpstan:
@$(phpstan_bin)
2 changes: 0 additions & 2 deletions tests/php-unix.ini

This file was deleted.

0 comments on commit c82f409

Please sign in to comment.