Skip to content

Commit bc70bbe

Browse files
authored
Merge pull request #367 from php-http/use-flex-for-version-tests
use symfony flex rather than the deprecated dunglas/symfony-lock
2 parents eb9e8a9 + 09fe28b commit bc70bbe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,15 @@ matrix:
3232

3333
# Test LTS versions
3434
- php: 7.3
35-
env: DEPENDENCIES="dunglas/symfony-lock:^3"
35+
env: SYMFONY_REQUIRE=3.4.*
3636
- php: 7.3
37-
env: DEPENDENCIES="dunglas/symfony-lock:^4"
37+
env: SYMFONY_REQUIRE=4.2.*
38+
- php: 7.3
39+
env: SYMFONY_REQUIRE=4.3.*
40+
- php: 7.3
41+
env: SYMFONY_REQUIRE=4.4.*
42+
- php: 7.3
43+
env: SYMFONY_REQUIRE=5.0.*
3844

3945
# Test with httplug 1.x clients
4046
- php: 7.2
@@ -56,6 +62,7 @@ before_install:
5662
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
5763
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
5864
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
65+
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
5966

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"php-http/promise": "^1.0",
5656
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
5757
"symfony/browser-kit": "^3.4.34 || ^4.2.12 || ^5.0",
58-
"symfony/cache": "^3.4.34 || ^4.2.12 || ^5.0",
58+
"symfony/cache": "^3.4.34 || ~4.2.12 || ^4.3.8 || ^5.0",
5959
"symfony/dom-crawler": "^3.4.34 || ^4.2.12 || ^5.0",
6060
"symfony/framework-bundle": "^3.4.34 || ^4.2.12 || ^5.0",
61-
"symfony/http-foundation": "^3.4.34 || ^4.2.12 || ^5.0",
61+
"symfony/http-foundation": "^3.4.34 || ~4.2.12 || ^4.3.8 || ^5.0",
6262
"symfony/phpunit-bridge": "^3.4.34 || ^4.2.12 || ^5.0",
6363
"symfony/stopwatch": "^3.4.34 || ^4.2.12 || ^5.0",
6464
"symfony/twig-bundle": "^3.4.34 || ^4.2.12 || ^5.0",

0 commit comments

Comments
 (0)