2017-06-15 01:04:45 +02:00
|
|
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
2015-11-19 02:19:36 +01:00
|
|
|
language: php
|
|
|
|
|
2017-04-24 15:47:34 +02:00
|
|
|
sudo: false
|
2015-10-30 03:20:37 +01:00
|
|
|
|
|
|
|
env:
|
2016-02-24 15:03:05 +01:00
|
|
|
global:
|
2017-04-24 15:47:34 +02:00
|
|
|
- COMPOSER_ROOT_VERSION=1.0.x-dev
|
|
|
|
- CORE_RELEASE=4
|
|
|
|
# The path of the module when installed by composer
|
2016-02-24 15:03:05 +01:00
|
|
|
- MODULE_PATH=iframe
|
2015-10-30 03:20:37 +01:00
|
|
|
|
|
|
|
matrix:
|
2017-04-24 15:47:34 +02:00
|
|
|
fast_finish: true
|
2015-10-30 03:20:37 +01:00
|
|
|
include:
|
2015-11-19 02:19:36 +01:00
|
|
|
- php: 5.6
|
2017-04-24 15:47:34 +02:00
|
|
|
env: DB=MYSQL
|
|
|
|
- php: 7.0
|
|
|
|
env: DB=MYSQL
|
2017-06-15 01:04:45 +02:00
|
|
|
- php: 7.1
|
2017-04-24 15:47:34 +02:00
|
|
|
env: DB=MYSQL
|
2015-10-30 03:20:37 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- composer self-update || true
|
2017-04-24 15:47:34 +02:00
|
|
|
- phpenv rehash
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
- composer validate
|
2017-06-15 01:04:45 +02:00
|
|
|
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
|
2015-10-30 03:20:37 +01:00
|
|
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
|
|
|
- cd ~/builds/ss
|
2017-04-24 15:47:34 +02:00
|
|
|
- composer install --prefer-dist
|
2015-10-30 03:20:37 +01:00
|
|
|
|
2015-11-19 02:19:36 +01:00
|
|
|
script:
|
2017-04-24 15:47:34 +02:00
|
|
|
- vendor/bin/phpunit $MODULE_PATH/tests
|