From 170c821df904073a100fa5022861e2cb6669b802 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Mon, 7 Dec 2015 11:44:34 +0000 Subject: [PATCH] Travis: fix PHP 5.5 builds Travis PHP 5.5 builds are currently failing due to their using PHPUnit 5.x, which does not support PHP 5.5. As a workaround, we manually install PHPUnit 4.x. Fixes #20353 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9a260a6629..18ea829948 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,11 @@ language: php before_install: - git submodule update --init --recursive + # Workaround for failing PHP 5.5 builds, per https://github.com/travis-ci/travis-ci/issues/5206 + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then + curl -s -o $HOME/.phpenv/versions/5.5/bin/phpunit https://phar.phpunit.de/phpunit-old.phar; + chmod +x $HOME/.phpenv/versions/5.5/bin/phpunit; + fi before_script: - ./scripts/travis_before_script.sh