Skip to content

Commit

Permalink
Merge pull request #85 from ckressibucher/master
Browse files Browse the repository at this point in the history
use variables for binaries in Makefile
  • Loading branch information
slde-flash committed May 4, 2016
2 parents 7c46b49 + d95d657 commit d84486f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
PHP_BIN := php
COMPOSER_BIN := composer
BOX_BIN := box

.PHONY: build composer-install-dev tests tests-coverage

build: tests
composer install --no-dev --optimize-autoloader
box build
$(COMPOSER_BIN) install --no-dev --optimize-autoloader
$(BOX_BIN) build
chmod +x deptrac.phar

composer-install-dev:
composer install --dev --optimize-autoloader
$(COMPOSER_BIN) install --dev --optimize-autoloader

tests: composer-install-dev
./vendor/phpunit/phpunit/phpunit -c .
$(PHP_BIN) ./vendor/phpunit/phpunit/phpunit -c .

tests-coverage: composer-install-dev
./vendor/phpunit/phpunit/phpunit -c . --coverage-html coverage
$(PHP_BIN) ./vendor/phpunit/phpunit/phpunit -c . --coverage-html coverage

0 comments on commit d84486f

Please sign in to comment.