From 4426374173eb43d247ad0f9ce00d4ca62f8f98e6 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 15 Aug 2019 14:07:35 +1200 Subject: [PATCH] Use trusty distro in Travis builds and update tested SilverStripe versions --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4cefb93..4446f29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: php +dist: trusty + env: global: - COMPOSER_ROOT_VERSION=2.x-dev @@ -7,15 +9,15 @@ env: matrix: include: - php: 5.6 - env: DB=MYSQL RECIPE_VERSION=1.0.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.2.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1 - php: 5.6 - env: DB=MYSQL RECIPE_VERSION=1.1.x-dev PHPUNIT_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.3.x-dev PHPUNIT_TEST=1 - php: 7.0 - env: DB=PGSQL RECIPE_VERSION=1.2.x-dev PHPUNIT_TEST=1 + env: DB=PGSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_TEST=1 - php: 7.1 - env: DB=PGSQL RECIPE_VERSION=1.2.x-dev PHPUNIT_COVERAGE_TEST=1 + env: DB=PGSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_COVERAGE_TEST=1 - php: 7.2 - env: DB=MYSQL RECIPE_VERSION=1.x-dev PHPUNIT_TEST=1 + env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1 before_script: # Init PHP @@ -24,7 +26,6 @@ before_script: - echo 'memory_limit=2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - composer require --no-update silverstripe/recipe-cms "$RECIPE_VERSION" - # Note: Postgres version is for SilverStripe >= 4.2.x - if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.1.x-dev; fi - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile