Skip to content

Commit 7e67331

Browse files
committed
make it easier to install dev dependencies locally
1 parent a0426fe commit 7e67331

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ matrix:
1515
include:
1616
# lowest dependencies
1717
- php: 7.1
18-
env: COMPOSER_FLAGS="--prefer-lowest"
18+
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
1919
# Symfony 3 LTS
2020
- php: 7.2
21-
env: SYMFONY_REQUIRE="3.4.*"
21+
env: SYMFONY_REQUIRE="3.4.*" COMPOSER_FLAGS="--prefer-stable"
2222
# Symfony 4.3
2323
- php: 7.3
24-
env: SYMFONY_REQUIRE="4.3.*"
24+
env: SYMFONY_REQUIRE="4.3.*" COMPOSER_FLAGS="--prefer-stable"
2525
# Symfony 4.4
2626
- php: 7.4
27-
env: SYMFONY_REQUIRE="4.4.*" COVERAGE=yes
27+
env: SYMFONY_REQUIRE="4.4.*" COMPOSER_FLAGS="--prefer-stable" COVERAGE=yes
2828
# development dependencies
2929
- php: 7.4
3030
env: DEPENDENCIES='dev'
@@ -36,7 +36,6 @@ before_install:
3636
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3737
- if [ "$COVERAGE" != "yes" ]; then phpenv config-rm xdebug.ini || true; fi
3838
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
39-
- if [ "$DEPENDENCIES" != "" ]; then composer config minimum-stability $DEPENDENCIES; fi
4039
- if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi
4140

4241
install:

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"jms/serializer-bundle": "<2.0.0",
8080
"jms/serializer": "<1.13.0"
8181
},
82+
"minimum-stability": "dev",
8283
"extra": {
8384
"branch-alias": {
8485
"2.x-dev": "2.8-dev",

0 commit comments

Comments
 (0)