Skip to content

Commit 6cab179

Browse files
committed
Fixes Travis-Build
This adds a check for PHP7 to the HHVM-Check. Therefore on PHP7 the PECL-GeoIP-Extension shouldn't be loaded. Instead the geoip/geoip-package is required on PHP7. It could also be required for HHVM, but I'm not sure that works...
1 parent 9ebba1f commit 6cab179

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ matrix:
2525
env: deps="low"
2626

2727
before_script:
28-
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then pecl install geoip; fi
28+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "7.0" ]; then pecl install geoip; fi
2929
- composer self-update
3030
- if [ "$deps" = "low" ]; then composer update --prefer-dist --prefer-lowest; fi
3131
- if [ "$deps" = "" ]; then composer install --prefer-dist --no-interaction; fi
32+
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then composer require "geoip/geoip"; fi
3233

3334
script: phpunit --coverage-text

0 commit comments

Comments
 (0)