Skip to content

Commit e514408

Browse files
committed
improve travis-ci matrix
1 parent dfe7f56 commit e514408

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.travis.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,38 +21,40 @@ matrix:
2121
fast_finish: true
2222
include:
2323
# Minimum supported Symfony version and latest PHP version
24-
- php: 7.1
25-
env: DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"
24+
- php: 7.2
25+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
2626

2727
# Test the latest stable release
28+
- php: 5.5
29+
env: SYMFONY_PHPUNIT_VERSION="5.7"
2830
- php: 5.6
2931
env: SYMFONY_PHPUNIT_VERSION="5.7"
3032
- php: 7.0
3133
- php: 7.1
3234
- php: 7.2
35+
env: COVERAGE=true TEST_COMMAND="composer test-ci"
3336

3437
# Test LTS versions
35-
- php: 5.5
38+
- php: 7.2
3639
env: DEPENDENCIES="dunglas/symfony-lock:^2"
37-
- php: 5.5
40+
- php: 7.2
3841
env: DEPENDENCIES="dunglas/symfony-lock:^3"
39-
- php: 7.1
40-
env: DEPENDENCIES="dunglas/symfony-lock:^4"
42+
- php: 7.2
43+
env: DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc"
4144

4245
# Latest commit to master
43-
- php: 7.1
44-
env: DEPENDENCIES="dev"
46+
- php: 7.2
47+
env: STABILITY="dev"
4548

4649
allow_failures:
4750
# dev-master is allowed to fail.
48-
- php: 7.1
49-
env: DEPENDENCIES="dev"
51+
- php: 7.2
52+
env: STABILITY="dev"
5053

5154
before_install:
5255
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
53-
- if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi;
54-
- if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
55-
- if [[ $DEPENDENCIES == *"/"* ]]; then composer require --no-update $DEPENDENCIES; fi;
56+
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
57+
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
5658

5759
install:
5860
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355

0 commit comments

Comments
 (0)