Automatically check PHP files for syntax errors
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Feb 2013 15:39:56 +0000 (16:39 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Feb 2013 15:40:44 +0000 (16:40 +0100)
.travis.yml

index 785349a6148f8d377cacdba3a0f1475ce0f7a0f8..504cb4b77ab76881313216fa3fe4be7024666ee0 100644 (file)
@@ -6,4 +6,5 @@ before_install:
   - pear install pear/PHP_CodeSniffer
   - phpenv rehash
 script:
-  - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" .
\ No newline at end of file
+  - find . -type f -name '*.php' -exec php -l {} \;
+  - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" .