Skip to content

Commit

Permalink
Adding Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Mar 24, 2014
1 parent ee37540 commit 2a038f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage
vendor
composer.lock
phpunit.xml
compiled
artifacts/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ php:
- hhvm

before_script:
- composer install --dev
- composer install

script: vendor/bin/phpunit
script: make test

matrix:
allow_failures:
Expand Down
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
all: clean coverage

list:
@sh -c "$(MAKE) -p .dummy | awk -F':' '/^[a-zA-Z0-9][^\$$#\/\\t=]*:([^=]|$$)/ {split(\$$1,A,/ /);for(i in A)print A[i]}' | grep -v '__\$$' | sort"

test:
vendor/bin/phpunit

coverage:
vendor/bin/phpunit --coverage-html=artifacts/coverage

view-coverage:
open artifacts/coverage/index.html

clean:
rm -rf artifacts/*

perf:
php bin/perf.php

.PHONY: test coverage perf
.dummy:

0 comments on commit 2a038f6

Please sign in to comment.