1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-18 01:20:40 +00:00
Tims-Chat/.travis.yml

17 lines
681 B
YAML
Raw Normal View History

2012-12-20 17:51:54 +01:00
language: php
php:
2015-01-10 15:45:23 +01:00
- 5.6
2012-12-20 17:51:54 +01:00
- 5.3
before_install:
2015-01-10 15:45:23 +01:00
- pyrus install pear/PHP_CodeSniffer
2012-12-20 17:51:54 +01:00
- phpenv rehash
before_script:
- git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
2013-01-07 18:46:19 +01:00
- rm WCF/CodeSniff/WCF/Sniffs/Namespaces/ClassMustBeImportedSniff.php
- rm WCF/CodeSniff/WCF/Sniffs/Namespaces/UseDeclarationSniff.php
2013-01-07 18:50:22 +01:00
- 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 17:51:54 +01:00
script:
2013-05-01 16:52:05 +02:00
- find file -type f -name '*.php' |xargs -I file php -l file
2012-12-20 18:16:32 +01:00
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" file