mirror of
https://github.com/silverstripe/recipe-cms.git
synced 2024-10-22 08:05:52 +02:00
39 lines
834 B
YAML
39 lines
834 B
YAML
language: php
|
|
|
|
dist: xenial
|
|
|
|
services:
|
|
- mysql
|
|
- postgresql
|
|
|
|
env:
|
|
global:
|
|
- COMPOSER_ROOT_VERSION=5.x-dev
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.1
|
|
env: DB=MYSQL
|
|
- php: 7.2
|
|
env: DB=PGSQL
|
|
- php: 7.3
|
|
env: DB=MYSQL
|
|
- php: 7.4
|
|
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:3.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
|