Skip to content

Commit

Permalink
Travis: fix PHP 5.5 builds
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dregad committed Dec 7, 2015
1 parent e9260b1 commit 170c821
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -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
Expand Down

0 comments on commit 170c821

Please sign in to comment.