2018-10-16 12:00:57 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2019-04-21 01:19:56 +02:00
|
|
|
- COMPOSER_ROOT_VERSION=4.5.x-dev
|
2018-10-16 12:00:57 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 5.6
|
|
|
|
env: DB=MYSQL
|
|
|
|
- php: 7.0
|
|
|
|
env: DB=PGSQL
|
|
|
|
- php: 7.1
|
|
|
|
env: DB=MYSQL
|
|
|
|
- php: 7.2
|
|
|
|
env: DB=MYSQL
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- phpenv rehash
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
|
|
|
|
- composer validate
|
|
|
|
- composer require --no-update silverstripe-themes/simple:~3.2.0
|
|
|
|
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.1.x-dev --no-update; fi
|
|
|
|
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
|
|
|
|
|
|
|
|
# Validate cow schema
|
|
|
|
- composer global require silverstripe/cow ^2
|
|
|
|
- ~/.config/composer/vendor/bin/cow schema:validate
|
|
|
|
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit --testsuite recipe-cms
|