From 368efb6fd911850b14668e2092b271101924e1c5 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 22 Jun 2020 10:02:34 +1200 Subject: [PATCH] Xenial travis update --- .travis.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 06340fbd..1a78bf09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ language: php +dist: xenial + +services: + - mysql + - postgresql + env: global: - COMPOSER_ROOT_VERSION=2.0.x-dev @@ -7,21 +13,25 @@ env: matrix: include: - php: 5.6 - env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1 - - php: 7.0 - env: DB=PGSQL PHPUNIT_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1 - php: 7.1 - env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.5.x-dev PHPUNIT_COVERAGE_TEST=1 PDO=1 - php: 7.2 - env: DB=MYSQL PHPUNIT_TEST=1 + env: DB=PGSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1 + - php: 7.3 + env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1 + - php: 7.4 + env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1 before_script: - phpenv rehash - phpenv config-rm xdebug.ini - echo 'memory_limit = 2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - composer validate - - composer require silverstripe/recipe-cms 1.0.x-dev --no-update - - if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.0.x-dev; fi + - composer require --no-update silverstripe/recipe-cms:$RECIPE_VERSION + # Fix for running phpunit 5 on php 7.4+ + - composer require --no-update sminnee/phpunit-mock-objects:^3 + - if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:^2; fi - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile script: