mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Separate PHPCS run on travis, don't fail whole build for it
This commit is contained in:
parent
681a0241e7
commit
90084bb708
13
.travis.yml
13
.travis.yml
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user