Separate PHPCS run on travis, don't fail whole build for it

This commit is contained in:
Ingo Schommer 2012-12-14 10:15:52 +01:00
parent 681a0241e7
commit 90084bb708
1 changed files with 8 additions and 5 deletions

View File

@ -13,8 +13,15 @@ matrix:
env: TESTDB=PGSQL
- php: 5.4
env: TESTDB=SQLITE
include:
- php: 5.4
env:
- PHPCS=1
allow_failures:
- env: TESTDB=PGSQL
- php: 5.4
env:
- PHPCS=1
before_script:
- pear install pear/PHP_CodeSniffer
@ -23,17 +30,13 @@ before_script:
- cd ~/builds/ss
script:
- phpunit -c phpunit.xml.dist
- phpcs --encoding=utf-8 --tab-width=4 --standard=framework/tests/phpcs/ruleset.xml -np framework
- phpcs --encoding=utf-8 --standard=framework/tests/phpcs/tabs.xml -np framework
- sh -c "if [ '$PHPCS' != '1' ]; then phpunit -c phpunit.xml.dist; else phpcs --encoding=utf-8 --tab-width=4 --standard=framework/tests/phpcs/ruleset.xml -np framework && phpcs --encoding=utf-8 --standard=framework/tests/phpcs/tabs.xml -np framework; fi"
branches:
except:
- 2.1
- 2.2
- 2.3
- 2.4
- post-2.4
- translation-staging
notifications: