2018-10-16 12:00:57 +02:00
|
|
|
language: php
|
|
|
|
|
2019-11-18 02:44:03 +01:00
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
|
|
|
|
2018-10-16 12:00:57 +02:00
|
|
|
env:
|
|
|
|
global:
|
2019-12-08 23:09:42 +01:00
|
|
|
- COMPOSER_ROOT_VERSION=4.x-dev
|
2018-10-16 12:00:57 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 7.1
|
2020-10-14 03:25:49 +02:00
|
|
|
env: DB=MYSQL COMPOSER_ARG=--prefer-lowest
|
2018-10-16 12:00:57 +02:00
|
|
|
- php: 7.2
|
2019-05-23 04:12:42 +02:00
|
|
|
env: DB=PGSQL
|
|
|
|
- php: 7.3
|
|
|
|
env: DB=MYSQL
|
2020-02-26 02:53:42 +01:00
|
|
|
- php: 7.4
|
2018-10-16 12:00:57 +02:00
|
|
|
env: DB=MYSQL
|
2020-10-14 03:25:49 +02:00
|
|
|
- php: nightly
|
|
|
|
env: DB=MYSQL COMPOSER_ARG=--ignore-platform-reqs
|
2018-10-16 12:00:57 +02:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- phpenv rehash
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
|
|
|
|
- composer validate
|
|
|
|
- composer require --no-update silverstripe-themes/simple:~3.2.0
|
2019-12-08 23:09:42 +01:00
|
|
|
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.x-dev --no-update; fi
|
2020-10-14 03:25:49 +02:00
|
|
|
- composer update --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG
|
2018-10-16 12:00:57 +02:00
|
|
|
|
|
|
|
# Validate cow schema
|
2020-10-15 22:57:28 +02:00
|
|
|
- composer global require silverstripe/cow dev-master $COMPOSER_ARG
|
2018-10-16 12:00:57 +02:00
|
|
|
- ~/.config/composer/vendor/bin/cow schema:validate
|
|
|
|
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit --testsuite recipe-cms
|