1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00
Tims-Chat/.travis.yml

20 lines
814 B
YAML
Raw Permalink Normal View History

2012-12-20 16:51:54 +00:00
language: php
php:
2013-06-22 23:05:49 +00:00
- 5.5
2012-12-20 16:51:54 +00:00
- 5.4
- 5.3
before_install:
2013-09-25 16:40:16 +00:00
- pear config-set auto_discover 1
2012-12-20 16:51:54 +00:00
- pear install pear/PHP_CodeSniffer
2013-09-25 16:40:16 +00:00
- pear install pear.phpunit.de/phpcpd
2012-12-20 16:51:54 +00:00
- 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
2013-01-07 17:50:22 +00: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 16:51:54 +00:00
script:
2013-05-01 14:52:05 +00:00
- find file -type f -name '*.php' |xargs -I file php -l file
2012-12-20 17:16:32 +00:00
- phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" file
2013-11-19 19:53:36 +00:00
- phpcpd --verbose --min-lines 10 file ; exit 0