From b952011f95eb04e6c08435a5a0c2abfb6b85be93 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 19 May 2020 10:58:53 +0200 Subject: [PATCH] Install the phpunit-bridge with PHP 7.4 when testing nightly --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5b9af3a57..bda0ce9ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: php -dist: trusty +dist: xenial sudo: false @@ -19,7 +19,14 @@ before_install: install: - travis_retry composer install - - if [[ $TRAVIS_PHP_VERSION = nightly ]]; then phpenv global 7.1; ./vendor/bin/simple-phpunit install; phpenv global nightly; fi + - | + # install the phpunit-bridge with PHP 7.4 when testing nightly + if [[ $TRAVIS_PHP_VERSION = nightly ]]; then + (cd / && wget https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-7.4.tar.bz2 -O - | tar -xj) + phpenv global 7.4; + ./vendor/bin/simple-phpunit install; + phpenv global nightly; + fi script: ./vendor/bin/simple-phpunit