2017-06-15 01:41:17 +02:00
|
|
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
2013-03-29 09:50:12 +01:00
|
|
|
|
2015-07-20 16:58:43 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
sudo: false
|
2013-03-29 09:50:12 +01:00
|
|
|
|
2017-05-29 13:42:42 +02:00
|
|
|
sudo: false
|
|
|
|
|
2014-08-26 01:37:16 +02:00
|
|
|
php:
|
2015-11-13 07:06:09 +01:00
|
|
|
- 5.5
|
2013-03-29 09:50:12 +01:00
|
|
|
|
|
|
|
env:
|
2014-08-26 01:37:16 +02:00
|
|
|
global:
|
2017-08-02 06:39:32 +02:00
|
|
|
- CORE_RELEASE=4
|
2014-08-26 01:37:16 +02:00
|
|
|
matrix:
|
2014-08-26 23:06:16 +02:00
|
|
|
- DB=MYSQL
|
2014-08-26 01:37:16 +02:00
|
|
|
- DB=PGSQL
|
2013-03-29 09:50:12 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2015-11-13 07:06:09 +01:00
|
|
|
- php: 5.5
|
2014-08-26 01:37:16 +02:00
|
|
|
env: DB=MYSQL BEHAT_TEST=1
|
2013-03-29 09:50:12 +01:00
|
|
|
|
|
|
|
before_script:
|
2015-06-15 11:02:06 +02:00
|
|
|
- composer self-update || true
|
2014-03-27 05:11:50 +01:00
|
|
|
- phpenv rehash
|
2017-06-15 01:41:17 +02:00
|
|
|
- git clone git://github.com/silverstripe/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
|
|
|
|
2016-05-16 07:18:22 +02:00
|
|
|
script:
|
2015-02-23 21:34:34 +01:00
|
|
|
- "if [ \"$BEHAT_TEST\" = \"\" ]; then vendor/bin/phpunit subsites/tests; fi"
|
2014-03-27 05:11:50 +01:00
|
|
|
- "if [ \"$BEHAT_TEST\" = \"1\" ]; then vendor/bin/behat @subsites; fi"
|