mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
17 lines
689 B
YAML
17 lines
689 B
YAML
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
|
|
- 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
|
|
script:
|
|
- find . -type f -name '*.php' |xargs -I file php -l file > /dev/null
|
|
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" file
|