|
6 | 6 | directories:
|
7 | 7 | - $HOME/.composer/cache/files
|
8 | 8 |
|
9 |
| -## PHP versions we test against |
| 9 | + ## PHP versions we test against for current composer dependancies |
10 | 10 | php:
|
11 | 11 | - 7.0
|
12 | 12 | - 7.1
|
13 | 13 | - nightly
|
14 |
| - - hhvm |
| 14 | +## environment variables, one build is created for each |
| 15 | +env: |
| 16 | + - dependencies=lowest |
| 17 | + - dependencies=current |
| 18 | + - dependencies=highest |
15 | 19 |
|
16 |
| -## Build matrix for lowest and highest possible targets |
| 20 | +## Build matrix for PHP versions we test against with lowest and highest possible targets |
17 | 21 | matrix:
|
18 | 22 | include:
|
19 |
| - - php: 7.0 |
20 |
| - env: dependencies=lowest |
21 |
| - - php: 7.1 |
22 |
| - env: dependencies=lowest |
23 |
| - - php: nightly |
24 |
| - env: dependencies=lowest |
25 | 23 | - php: hhvm
|
| 24 | + sudo: true |
| 25 | + dist: trusty |
| 26 | + group: edge # until the next major travis stable update |
26 | 27 | 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 |
33 | 28 | - 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 |
34 | 37 | env: dependencies=highest
|
35 | 38 | allow_failures:
|
36 | 39 | - php: hhvm
|
37 | 40 |
|
| 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 | + |
38 | 45 | ## Install or update dependencies
|
39 | 46 | install:
|
40 | 47 | #- composer validate
|
41 | 48 | - 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; |
43 | 50 | - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
|
44 | 51 | - if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
|
45 | 52 | - composer show
|
|
0 commit comments