Skip to content

Commit a6b8755

Browse files
fbourigaultNyholm
authored andcommitted
Full symfony 4 dependencies (#232)
* test with symfony 4 only dependencies * use dunglas/symfony-lock instead of symfony/lts * add Symfony 4 build in travis-ci matrix * Run test with dev-master * Use stable versions * improve travis-ci matrix * any job with dev stability is allowed to fail
1 parent 5eb8de2 commit a6b8755

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.travis.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,39 @@ 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" SYMFONY_PHPUNIT_VERSION="5.7"
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
36-
env: DEPENDENCIES="symfony/lts:^2"
37-
- php: 5.5
38-
env: DEPENDENCIES="symfony/lts:^3"
38+
- php: 7.2
39+
env: DEPENDENCIES="dunglas/symfony-lock:^2"
40+
- php: 7.2
41+
env: DEPENDENCIES="dunglas/symfony-lock:^3"
42+
- php: 7.2
43+
env: DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc"
3944

4045
# Latest commit to master
41-
- php: 7.1
42-
env: DEPENDENCIES="dev"
46+
- php: 7.2
47+
env: STABILITY="dev"
4348

4449
allow_failures:
45-
# dev-master is allowed to fail.
46-
- php: 7.1
47-
env: DEPENDENCIES="dev"
50+
# dev stability is allowed to fail.
51+
- env: STABILITY="dev"
4852

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

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

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"require-dev": {
3939
"guzzlehttp/psr7": "^1.0",
40-
"matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.0",
40+
"matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.3",
4141
"nyholm/nsa": "^1.1",
4242
"php-http/buzz-adapter": "^0.3",
4343
"php-http/curl-client": "^1.0",

0 commit comments

Comments
 (0)