mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Check PHP syntax in travis
This commit is contained in:
parent
ecb1d16394
commit
8f2f2a4ed5
@ -12,4 +12,5 @@ before_script:
|
||||
- sed -i 's/<rule ref="WCF.Namespaces.ClassMustBeImported" \/>//' WCF/CodeSniff/WCF/ruleset.xml
|
||||
- sed -i 's/<rule ref="WCF.Namespaces.UseDeclaration" \/>//' WCF/CodeSniff/WCF/ruleset.xml
|
||||
script:
|
||||
- find . -type f -name '*.php' |xargs -I file php -l file > /dev/null
|
||||
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" file
|
||||
|
Loading…
Reference in New Issue
Block a user