Skip to content

Commit 21b417a

Browse files
authored
Merge pull request #15 from photodude/patch-2
Use current HHVM
2 parents cd0e88d + 7058047 commit 21b417a

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

.travis.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,47 @@ cache:
66
directories:
77
- $HOME/.composer/cache/files
88

9-
## PHP versions we test against
9+
## PHP versions we test against for current composer dependancies
1010
php:
1111
- 7.0
1212
- 7.1
1313
- nightly
14-
- hhvm
14+
## environment variables, one build is created for each
15+
env:
16+
- dependencies=lowest
17+
- dependencies=current
18+
- dependencies=highest
1519

16-
## Build matrix for lowest and highest possible targets
20+
## Build matrix for PHP versions we test against with lowest and highest possible targets
1721
matrix:
1822
include:
19-
- php: 7.0
20-
env: dependencies=lowest
21-
- php: 7.1
22-
env: dependencies=lowest
23-
- php: nightly
24-
env: dependencies=lowest
2523
- php: hhvm
24+
sudo: true
25+
dist: trusty
26+
group: edge # until the next major travis stable update
2627
env: dependencies=lowest
27-
- php: 7.0
28-
env: dependencies=highest
29-
- php: 7.1
30-
env: dependencies=highest
31-
- php: nightly
32-
env: dependencies=highest
3328
- php: hhvm
29+
sudo: true
30+
dist: trusty
31+
group: edge # until the next major travis stable update
32+
env: dependencies=current
33+
- php: hhvm
34+
sudo: true
35+
dist: trusty
36+
group: edge # until the next major travis stable update
3437
env: dependencies=highest
3538
allow_failures:
3639
- php: hhvm
3740

41+
before_install:
42+
# Force hhvm PHP 7 mode
43+
- if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi
44+
3845
## Install or update dependencies
3946
install:
4047
#- composer validate
4148
- composer config --unset platform.php
42-
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
49+
- if [ "$dependencies" = "current" ]; then composer install --prefer-dist; fi;
4350
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
4451
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
4552
- composer show

0 commit comments

Comments
 (0)