Skip to content

Commit

Permalink
Full symfony 4 dependencies (#232)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fbourigault authored and Nyholm committed Nov 30, 2017
1 parent 5eb8de2 commit a6b8755
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,39 @@ matrix:
fast_finish: true
include:
# Minimum supported Symfony version and latest PHP version
- php: 7.1
env: DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"
- php: 7.2
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"

# Test the latest stable release
- php: 5.5
env: SYMFONY_PHPUNIT_VERSION="5.7"
- php: 5.6
env: SYMFONY_PHPUNIT_VERSION="5.7"
- php: 7.0
- php: 7.1
- php: 7.2
env: COVERAGE=true TEST_COMMAND="composer test-ci"

# Test LTS versions
- php: 5.5
env: DEPENDENCIES="symfony/lts:^2"
- php: 5.5
env: DEPENDENCIES="symfony/lts:^3"
- php: 7.2
env: DEPENDENCIES="dunglas/symfony-lock:^2"
- php: 7.2
env: DEPENDENCIES="dunglas/symfony-lock:^3"
- php: 7.2
env: DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc"

# Latest commit to master
- php: 7.1
env: DEPENDENCIES="dev"
- php: 7.2
env: STABILITY="dev"

allow_failures:
# dev-master is allowed to fail.
- php: 7.1
env: DEPENDENCIES="dev"
# dev stability is allowed to fail.
- env: STABILITY="dev"

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

install:
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"require-dev": {
"guzzlehttp/psr7": "^1.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.1 || ^2.3",
"nyholm/nsa": "^1.1",
"php-http/buzz-adapter": "^0.3",
"php-http/curl-client": "^1.0",
Expand Down

0 comments on commit a6b8755

Please sign in to comment.