Skip to content

Commit

Permalink
Merge pull request #680 from Bilge/travis-extensions
Browse files Browse the repository at this point in the history
Improved Travis extension setup code
  • Loading branch information
davedevelopment committed Jan 25, 2017
2 parents e5ca008 + e7f64c9 commit 00fa7c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ install:
- composer install

before_script:
# Install extensions for PHP 5.x series. 7.x includes them by default.
- |
if [[ $TRAVIS_PHP_VERSION != hhvm \
&& $TRAVIS_PHP_VERSION != hhvm-nightly \
&& $TRAVIS_PHP_VERSION != 7.0 ]]; then
cat <<<'
if [[ $TRAVIS_PHP_VERSION = 5.* ]]; then
cat <<< '
extension=mongo.so
extension=redis.so
' >> ~/.phpenv/versions/"$(phpenv version-name)"/etc/conf.d/travis.ini
Expand Down

0 comments on commit 00fa7c8

Please sign in to comment.