diff --git a/.travis.yml b/.travis.yml index f30bbf3b..4c824a54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,5 @@ php: - 5.3 - 5.2 -script: php `pwd`/tools/test.php +script: cd ./tools/ && set -e && make test diff --git a/tools/Makefile b/tools/Makefile index 2533f675..a45f41a9 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -103,6 +103,12 @@ pot: rm -f files.txt +test: + for i in `find ../var/ -name '*.php'`; do php -l $$i; done; + for i in `find ../usr/ -name '*.php'`; do php -l $$i; done; + for i in `find ../admin/ -name '*.php'`; do php -l $$i; done; + + all: make update make package