silverstripe-framework/.travis.yml
2013-03-28 23:49:32 +01:00

47 lines
1.1 KiB
YAML

language: php
php:
- 5.3
- 5.4
env:
- DB=MYSQL CORE_RELEASE=master
- DB=PGSQL CORE_RELEASE=master
- DB=SQLITE3 CORE_RELEASE=master
- PHPCS=1 CORE_RELEASE=master
matrix:
exclude:
- php: 5.4
env: DB=PGSQL CORE_RELEASE=master
- php: 5.4
env: DB=SQLITE3 CORE_RELEASE=master
- php: 5.4
env: PHPCS=1 CORE_RELEASE=master
allow_failures:
- env: DB=PGSQL CORE_RELEASE=master
- env: DB=SQLITE3 CORE_RELEASE=master
- env: PHPCS=1 CORE_RELEASE=master
before_script:
- pear install pear/PHP_CodeSniffer
- phpenv rehash
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- sh -c "if [ '$PHPCS' != '1' ]; then phpunit framework/tests; 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
- translation-staging
notifications:
irc:
channels:
- "irc.freenode.org#silverstripe"