2012-08-14 06:02:12 +02:00
|
|
|
language: php
|
2012-08-21 00:33:54 +02:00
|
|
|
|
2013-03-28 23:06:30 +01:00
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
- 5.4
|
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=MYSQL CORE_RELEASE=3.1
|
|
|
|
- DB=PGSQL CORE_RELEASE=3.1
|
|
|
|
- DB=SQLITE3 CORE_RELEASE=3.1
|
|
|
|
- PHPCS=1 CORE_RELEASE=3.1
|
|
|
|
|
2012-08-21 00:33:54 +02:00
|
|
|
matrix:
|
2013-03-28 23:06:30 +01:00
|
|
|
exclude:
|
2012-12-14 10:15:52 +01:00
|
|
|
- php: 5.4
|
2013-03-28 22:39:37 +01:00
|
|
|
env: DB=PGSQL CORE_RELEASE=3.1
|
2013-03-28 23:06:30 +01:00
|
|
|
- php: 5.4
|
2013-03-28 22:39:37 +01:00
|
|
|
env: DB=SQLITE3 CORE_RELEASE=3.1
|
2012-12-14 10:15:52 +01:00
|
|
|
- php: 5.4
|
2013-03-28 22:39:37 +01:00
|
|
|
env: PHPCS=1 CORE_RELEASE=3.1
|
|
|
|
allow_failures:
|
|
|
|
- env: DB=PGSQL CORE_RELEASE=3.1
|
|
|
|
- env: DB=SQLITE3 CORE_RELEASE=3.1
|
2013-03-28 23:06:30 +01:00
|
|
|
- env: PHPCS=1 CORE_RELEASE=3.1
|
2012-08-14 06:02:12 +02:00
|
|
|
|
|
|
|
before_script:
|
2012-09-26 23:35:17 +02:00
|
|
|
- pear install pear/PHP_CodeSniffer
|
|
|
|
- phpenv rehash
|
2013-03-28 22:39:37 +01:00
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
2012-08-14 06:11:37 +02:00
|
|
|
- cd ~/builds/ss
|
2012-08-14 06:02:12 +02:00
|
|
|
|
|
|
|
script:
|
2013-03-28 22:39:37 +01:00
|
|
|
- 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"
|
2012-09-03 03:20:11 +02:00
|
|
|
|
2012-10-16 10:25:18 +02:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- 2.1
|
|
|
|
- 2.2
|
|
|
|
- 2.3
|
|
|
|
- translation-staging
|
|
|
|
|
2012-09-03 03:20:11 +02:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
2013-03-28 23:06:30 +01:00
|
|
|
- "irc.freenode.org#silverstripe"
|