Skip to content

Commit 08a1367

Browse files
committed
Improved Travis Config and use new docker-based env
1 parent 0661ca7 commit 08a1367

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.travis.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,37 @@ php:
77
- 5.6
88
- hhvm
99

10+
sudo: false
11+
12+
cache:
13+
directories:
14+
- $HOME/.composer/cache
15+
1016
env:
11-
- SYMFONY_VERSION=2.6.* PACKAGE_VERSION=high
17+
- SYMFONY_VERSION=2.6.*
1218

1319
matrix:
1420
include:
1521
- php: 5.3.3
16-
env: SYMFONY_VERSION=2.3.* PACKAGE_VERSION=low
22+
env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
1723
- php: 5.6
18-
env: SYMFONY_VERSION=2.3.* PACKAGE_VERSION=high
24+
env: SYMFONY_VERSION=2.3.*
1925
- php: 5.6
20-
env: SYMFONY_VERSION=2.5.* PACKAGE_VERSION=high
26+
env: SYMFONY_VERSION=2.5.*
2127
- php: 5.6
22-
env: SYMFONY_VERSION=2.7.* PACKAGE_VERSION=high
28+
env: SYMFONY_VERSION=2.7.*
2329
- php: 5.6
24-
env: SYMFONY_VERSION=3.0.*@dev PACKAGE_VERSION=high
30+
env: SYMFONY_VERSION=3.0.*
2531
allow_failures:
2632
- php: 5.6
27-
env: SYMFONY_VERSION=2.7.* PACKAGE_VERSION=high
33+
env: SYMFONY_VERSION=2.7.*
2834
- php: 5.6
29-
env: SYMFONY_VERSION=3.0.*@dev PACKAGE_VERSION=high
35+
env: SYMFONY_VERSION=3.0.*
3036

3137
before_script:
3238
- composer self-update
3339
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
34-
- if [[ "$PACKAGE_VERSION" == "high" ]]; then composer update --prefer-source; fi
35-
- if [[ "$PACKAGE_VERSION" == "low" ]]; then composer update --prefer-lowest --prefer-source; fi
40+
- composer update --prefer-source $COMPOSER_FLAGS
3641

3742
script: phpunit --coverage-text
3843

0 commit comments

Comments
 (0)