Merge pull request #42 from creative-commoners/pulls/4.7/travis-shared

MNT Travis shared config
This commit is contained in:
Andre Kiste 2020-12-21 14:29:41 +13:00 committed by GitHub
commit 4aa484ba2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 36 deletions

View File

@ -1,40 +1,9 @@
language: php
version: ~> 1.0
dist: xenial
services:
- mysql
- postgresql
import:
- silverstripe/silverstripe-travis-shared:config/provision/self-jobs-range.yml
env:
global:
- COMPOSER_ROOT_VERSION=4.x-dev
matrix:
include:
- php: 7.1
env: DB=MYSQL COMPOSER_ARG=--prefer-lowest
- php: 7.2
env: DB=PGSQL
- php: 7.3
env: DB=MYSQL
- php: 7.4
env: DB=MYSQL
- php: nightly
env: DB=MYSQL COMPOSER_ARG=--ignore-platform-reqs
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.x-dev --no-update; fi
- composer update --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG
# Validate cow schema
- composer global require silverstripe/cow dev-master $COMPOSER_ARG
- ~/.config/composer/vendor/bin/cow schema:validate
script:
- vendor/bin/phpunit --testsuite recipe-cms
- COMPOSER_ROOT_VERSION="4.7.x-dev"
- PHPUNIT_SUITE="recipe-cms"