2012-12-20 16:51:54 +00:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.4
|
|
|
|
- 5.3
|
|
|
|
before_install:
|
|
|
|
- pear install pear/PHP_CodeSniffer
|
|
|
|
- phpenv rehash
|
|
|
|
before_script:
|
|
|
|
- git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
|
2013-01-07 17:46:19 +00:00
|
|
|
- rm WCF/CodeSniff/WCF/Sniffs/Namespaces/ClassMustBeImportedSniff.php
|
|
|
|
- rm WCF/CodeSniff/WCF/Sniffs/Namespaces/UseDeclarationSniff.php
|
|
|
|
- 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
|
2012-12-20 16:51:54 +00:00
|
|
|
script:
|
2012-12-20 17:16:32 +00:00
|
|
|
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" file
|