From c9e34420e113125a748b5ad13bdc87030a094b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=81=E5=AE=81?= Date: Sat, 11 Oct 2014 12:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- tools/Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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