Skip to content

Commit 5527012

Browse files
committed
Install geoip ext on travis-ci
1 parent 705808e commit 5527012

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ matrix:
1111
- php: hhvm-nightly
1212

1313
before_script:
14+
- wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
15+
- gunzip GeoLiteCity.dat.gz
16+
- sudo mkdir -p /usr/share/GeoIP
17+
- sudo mv GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
18+
- sudo apt-get install -y --force-yes libgeoip-dev
19+
- pecl install geoip
20+
- echo "extension=geoip.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
1421
- composer self-update
1522
- composer install --dev --prefer-dist --no-interaction
1623

0 commit comments

Comments
 (0)