Skip to content

Commit e6fc8d4

Browse files
committed
Improve travis build speed
1 parent 2feeca5 commit e6fc8d4

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.travis.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22

33
php:
4+
- 5.3
45
- 5.4
56
- 5.5
67
- 5.6
@@ -13,23 +14,33 @@ cache:
1314
directories:
1415
- $HOME/.composer/cache/files
1516

17+
env:
18+
- SYMFONY_VERSION=2.8.*
19+
1620
matrix:
1721
include:
22+
- php: 5.6
23+
env: DEPS=dev
1824
- php: 5.3
19-
env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
20-
- php: 7.0
25+
env: COMPOSER_FLAGS="--prefer-lowest"
26+
- php: 5.6
27+
env: SYMFONY_VERSION=2.3.*
28+
- php: 5.6
2129
env: SYMFONY_VERSION=2.7.*
22-
- php: 7.0
23-
env: SYMFONY_VERSION=2.8.*
30+
- php: 5.6
31+
env: SYMFONY_VERSION=3.0.*
2432
fast_finish: true
2533

2634
before_install:
27-
- composer self-update || true
28-
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
29-
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
30-
- COMPOSER_ROOT_VERSION=dev-master composer update $COMPOSER_FLAGS --prefer-source --no-interaction
35+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
36+
- phpenv config-rm xdebug.ini || true
37+
- composer self-update
38+
- if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi
39+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
40+
41+
install: composer update --prefer-dist $COMPOSER_FLAGS
3142

32-
script: phpunit --coverage-text
43+
script: phpunit
3344

3445
notifications:
3546
irc: "irc.freenode.org#symfony-cmf"

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"homepage": "https://github.com/symfony-cmf/Routing/contributors"
99
}
1010
],
11-
"minimum-stability": "dev",
1211
"require": {
1312
"php": "^5.3.9|^7.0",
1413
"symfony/symfony": "^2.3|3.*",

0 commit comments

Comments
 (0)