Skip to content

Commit a7a2681

Browse files
authored
Adjust .travis.yml to run more versions of PHP as well as HHVM
1 parent 4c2d002 commit a7a2681

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

.travis.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
11
language: php
22

33
php:
4-
- 5.3
5-
- 5.4
6-
- 5.5
7-
- 5.6
8-
- hhvm
4+
- 7.0
5+
- 5.6
6+
- 5.3
7+
- hhvm
98

10-
install:
11-
- composer install
9+
sudo: false
1210

13-
script:
14-
- vendor/bin/phpunit
11+
cache:
12+
directories:
13+
- ~/.composer/cache/files
14+
15+
matrix:
16+
fast_finish: true
17+
include:
18+
- php: 5.3
19+
env: COMPOSER_FLAGS="--prefer-lowest"
20+
- php: 5.6
21+
env: SYMFONY_VERSION=2.3.*
22+
- php: 5.6
23+
env: SYMFONY_VERSION=2.7.*
24+
- php: 5.6
25+
env: SYMFONY_VERSION=2.8.*
26+
- php: 7.0
27+
env: SYMFONY_VERSION=3.0.*
28+
- php: 7.0
29+
env: SYMFONY_VERSION=3.1.*
30+
allow_failures:
31+
- php: hhvm
32+
33+
before_install:
34+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
35+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
36+
37+
before_script:
38+
- composer self-update
39+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --dev --no-update; fi;
40+
- if [ "$COMPOSER_FLAGS" != "" ]; then composer update --prefer-dist --no-interaction --no-scripts $COMPOSER_FLAGS; fi;
41+
- composer install --prefer-dist --no-interaction --no-scripts
42+
43+
script: vendor/bin/phpunit

0 commit comments

Comments
 (0)