2013-03-29 09:50:12 +01:00
|
|
|
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
|
|
|
|
|
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
|
|
|
|
env:
|
|
|
|
- DB=MYSQL CORE_RELEASE=3.1
|
|
|
|
- DB=PGSQL CORE_RELEASE=master
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.4
|
|
|
|
env: DB=MYSQL CORE_RELEASE=master
|
2014-03-27 05:11:50 +01:00
|
|
|
- php: 5.4
|
|
|
|
env: DB=MYSQL CORE_RELEASE=3.1 BEHAT_TEST=1
|
2013-03-29 09:50:12 +01:00
|
|
|
|
|
|
|
before_script:
|
2014-03-27 05:11:50 +01:00
|
|
|
- composer self-update
|
|
|
|
- phpenv rehash
|
2013-03-29 09:50:12 +01:00
|
|
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
2014-03-27 05:11:50 +01:00
|
|
|
- "if [ \"$BEHAT_TEST\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi"
|
|
|
|
- "if [ \"$BEHAT_TEST\" = \"1\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/behat-extension; fi"
|
2013-03-29 09:50:12 +01:00
|
|
|
- cd ~/builds/ss
|
2014-03-27 05:11:50 +01:00
|
|
|
- php ~/travis-support/travis_setup_selenium.php --if-env BEHAT_TEST
|
|
|
|
- php ~/travis-support/travis_setup_php54_webserver.php --if-env BEHAT_TEST
|
2013-03-29 09:50:12 +01:00
|
|
|
|
|
|
|
script:
|
2014-03-27 05:11:50 +01:00
|
|
|
- "if [ \"$BEHAT_TEST\" = \"\" ]; then phpunit subsites/tests; fi"
|
|
|
|
- "if [ \"$BEHAT_TEST\" = \"1\" ]; then vendor/bin/behat @subsites; fi"
|