Skip to content

Commit 8756ddc

Browse files
committed
minor #1800 improve the Travis CI config (xabbuh)
This PR was merged into the 2.3-dev branch. Discussion ---------- improve the Travis CI config * drop the `minimum-stability` setting in `composer.json` * set `minimum-stability` only when needed instead * use `symfony/lts` instead of `symfony/symfony` Commits ------- a5f3ccc improve the Travis CI config
2 parents ba34a87 + a5f3ccc commit 8756ddc

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ matrix:
1818
- php: 5.5
1919
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
2020
- php: 5.6
21+
# Symfony 2 LTS
2122
- php: 7.0
22-
env: SYMFONY_VERSION='2.8.*'
23+
env: SYMFONY_LTS='^2'
24+
# Symfony 3 LTS
2325
- php: 7.0
24-
env: SYMFONY_VERSION='3.4.*'
26+
env: SYMFONY_LTS='^3' DEPENDENCIES='dev'
27+
# development dependencies
2528
- php: 7.1
26-
env: SYMFONY_VERSION='4.0.*'
29+
env: DEPENDENCIES='dev'
2730

2831
before_install:
2932
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
30-
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi
33+
- if [ "$DEPENDENCIES" != "" ]; then composer config minimum-stability $DEPENDENCIES; fi
34+
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_VERSION; fi
3135

32-
install: composer update $COMPOSER_FLAGS --prefer-dist --prefer-stable
36+
install: composer update $COMPOSER_FLAGS --prefer-dist
3337

3438
script: ./phpunit

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"jms/serializer-bundle": "^1.2|^2.0",
6565
"psr/http-message": "^1.0"
6666
},
67-
"minimum-stability": "dev",
6867
"suggest": {
6968
"sensio/framework-extra-bundle": "Add support for route annotations and the view response listener, requires ^3.0",
7069
"jms/serializer-bundle": "Add support for advanced serialization capabilities, recommended, requires ^1.0",

0 commit comments

Comments
 (0)