From: Tim Düsterhus Date: Thu, 7 Feb 2013 12:40:48 +0000 (+0100) Subject: Check PHP files for syntax errors X-Git-Tag: 2.0.0_Beta_1~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c254f7040aa14e59b41d05ac27bcf214b437c0c7;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.legalNotice.git Check PHP files for syntax errors --- diff --git a/.travis.yml b/.travis.yml index c25b47b..9b4395a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,5 @@ before_install: before_script: - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF script: + - find . -type f -name '*.php' |xargs -I file php -l file > /dev/null - phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" files \ No newline at end of file