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 1e3500a commit 8f7dd7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ language: php
# Environment setup and test scripts execution
#

before_install:
# 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 8f7dd7b

Please sign in to comment.