2016-02-06 22:14:21 +01:00
|
|
|
language: php
|
2013-04-09 17:09:06 +02:00
|
|
|
|
2017-05-27 06:45:28 +02:00
|
|
|
php:
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
|
|
|
|
env:
|
2017-07-04 15:34:17 +02:00
|
|
|
- DB=MYSQL CORE_RELEASE=4.0
|
2015-07-20 17:20:07 +02:00
|
|
|
|
2016-05-17 02:22:10 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-05-27 06:45:28 +02:00
|
|
|
- php: 7.1
|
2017-07-04 15:34:17 +02:00
|
|
|
env: DB=PGSQL CORE_RELEASE=4.0
|
2017-10-27 21:23:06 +02:00
|
|
|
- php: 7.1
|
|
|
|
env: DB=SQLITE3 CORE_RELEASE=4.0
|
2016-02-06 22:14:21 +01:00
|
|
|
|
2013-04-09 17:09:06 +02:00
|
|
|
before_script:
|
2017-11-24 21:21:12 +01:00
|
|
|
# Init PHP
|
|
|
|
- composer self-update || true
|
|
|
|
- phpenv rehash
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
|
|
|
|
# Install composer dependencies
|
|
|
|
- composer validate
|
2017-11-24 21:35:26 +01:00
|
|
|
- composer require --no-update silverstripe/recipe-core:^1.0
|
2017-11-24 21:21:12 +01:00
|
|
|
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.0.x-dev --prefer-dist; fi
|
|
|
|
- if [[ $DB == SQLITE ]]; then composer require silverstripe/sqlite3:2.1.x-dev --prefer-dist; fi
|
2017-11-24 21:35:26 +01:00
|
|
|
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
|
2013-04-09 17:09:06 +02:00
|
|
|
|
2016-02-06 22:14:21 +01:00
|
|
|
script:
|
2017-11-24 21:21:12 +01:00
|
|
|
- vendor/bin/phpunit
|