Skip to content

Commit 4e52923

Browse files
committed
Adds if statements to make travis work with hhvm
1 parent ff58056 commit 4e52923

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis-php.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extension = memcache.so

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ matrix:
1313
fast_finish: true
1414

1515
before_install:
16-
- phpenv config-rm xdebug.ini
16+
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;'
1717
- pip install --user codecov
1818

1919
before_script:
20-
- echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
20+
# Need to activate memchache extension explictly to work with all versions.
21+
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-add .travis-php.ini; fi;'
2122
- travis_retry composer self-update
2223
- travis_retry composer install --prefer-source --no-interaction
2324

0 commit comments

Comments
 (0)