Skip to content

Commit 9861137

Browse files
committed
Merge pull request #423 from xabbuh/test-lowest-deps
improve Travis builds
2 parents e76309b + 279dfac commit 9861137

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.travis.yml

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1+
sudo: false
2+
3+
addons:
4+
apt:
5+
packages:
6+
- libgeoip-dev
7+
18
language: php
29

10+
env:
11+
global:
12+
- deps=""
13+
314
php:
415
- 5.4
516
- 5.5
617
- 5.6
18+
- nightly
719
- hhvm-nightly
820

21+
matrix:
22+
fast_finish: true
23+
include:
24+
- php: 5.4
25+
env: deps="low"
26+
927
before_script:
10-
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then sudo apt-get install -y --force-yes libgeoip-dev; fi'
11-
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then pecl install geoip; fi'
28+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then pecl install geoip; fi
1229
- composer self-update
13-
- composer install --dev --prefer-dist --no-interaction
30+
- if [ "$deps" = "low" ]; then composer update --prefer-dist --prefer-lowest; fi
31+
- if [ "$deps" = "" ]; then composer install --prefer-dist --no-interaction; fi
1432

1533
script: phpunit --coverage-text

0 commit comments

Comments
 (0)