Skip to content

Commit 398d18c

Browse files
committed
feature #1112 Run tests also against upcoming versions of symfony (rosier)
This PR was merged into the master branch. Discussion ---------- Run tests also against upcoming versions of symfony Run tests on travis also against upcoming versions of symfony (beta / rc) and dev-master Commits ------- eaf5ce5 Run tests also against upcoming versions of symfony
2 parents 951c8b3 + eaf5ce5 commit 398d18c

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

.travis.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,42 +26,47 @@ env:
2626
- PATH="$HOME/.symfony/bin:$PATH"
2727

2828
# Defines all jobs which Travis will run in parallel. For each PHP version we support we will run one job.
29-
matrix:
29+
jobs:
3030
# With fast finishing enabled, Travis CI will mark your build as finished as soon as one of two
3131
# conditions are met: The only remaining jobs are allowed to fail, or a job has already failed. In
3232
# these cases, the status of the build can already be determined, so there’s no need to wait around
3333
# until the other jobs finish.
3434
fast_finish: true
3535
include:
36+
# Run tests with the dependencies from composer.lock
3637
- php: 7.2
3738
- php: 7.3
38-
env: SYMFONY="5.0.*"
39-
ACTION="update"
4039
- php: 7.4
4140

41+
# Run tests against dev (currently 5.1.x-dev)
42+
- php: 7.3
43+
env: STABILITY=dev ACTION=update
44+
45+
# Run tests against dev-master (currently 5.2.x-dev)
46+
- php: 7.3
47+
env: STABILITY=dev SYMFONY=5.* ACTION=update
48+
4249
before_install:
43-
- '[[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || phpenv config-rm xdebug.ini'
44-
# Set memory to max (memory fail).
45-
- '[[ "$ACTION" == "install" ]] || echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini'
46-
# Set stability to dev to allow 4.4dev and 5.0dev.
47-
- '[[ "$ACTION" == "install" ]] || composer config minimum-stability dev'
48-
# Change version of symfony when need.
49-
- '[[ "$ACTION" == "install" ]] || composer config extra.symfony.require $SYMFONY'
50+
- phpenv config-rm xdebug.ini || true
51+
# Change minimum-stability to allow upcoming versions (dev | alpha | beta | RC)
52+
- '[[ -z $STABILITY ]] || composer config minimum-stability "$STABILITY"'
53+
# Change extra.symfony.require used by symfony flex
54+
- '[[ -z $SYMFONY ]] || composer config extra.symfony.require "$SYMFONY"'
5055
# If it is available update the Symfony binary, if not install it.
5156
- if symfony self:version; then symfony self:update ; else wget https://get.symfony.com/cli/installer -O - | bash ; fi
5257

5358
install:
5459
- php -r "echo ini_get('memory_limit').PHP_EOL;"
5560
# Install or update Composer packages including dev dependencies listed in require-dev.
56-
- composer $ACTION
61+
- COMPOSER_MEMORY_LIMIT=-1 composer $ACTION
5762
- ./bin/phpunit install
5863

5964
script:
6065
# There's no need to load data fixtures before running tests because the project
6166
# repository already includes a test database with all the fixtures needed to run the tests.
6267
- ./bin/phpunit
6368
# This checks that the source code follows the Symfony Code Syntax rules.
64-
- '[[ "$TRAVIS_PHP_VERSION" == "7.4" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
69+
- '[[ $TRAVIS_PHP_VERSION != "7.4" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
6570
# This checks that the YAML config files contain no syntax errors.
6671
- ./bin/console lint:yaml config --parse-tags
6772
# This checks that the Twig template files contain no syntax errors.

composer.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@
1818
"erusev/parsedown": "^1.6",
1919
"sensio/framework-extra-bundle": "^5.1",
2020
"symfony/apache-pack": "^1.0",
21-
"symfony/asset": "5.1.*",
22-
"symfony/console": "5.1.*",
23-
"symfony/dotenv": "5.1.*",
24-
"symfony/expression-language": "5.1.*",
21+
"symfony/asset": "^5.1",
22+
"symfony/console": "^5.1",
23+
"symfony/dotenv": "^5.1",
24+
"symfony/expression-language": "^5.1",
2525
"symfony/flex": "^1.1",
26-
"symfony/form": "5.1.*",
27-
"symfony/framework-bundle": "5.1.*",
28-
"symfony/intl": "5.1.*",
29-
"symfony/mailer": "5.1.*",
26+
"symfony/form": "^5.1",
27+
"symfony/framework-bundle": "^5.1",
28+
"symfony/intl": "^5.1",
29+
"symfony/mailer": "^5.1",
3030
"symfony/monolog-bundle": "^3.1",
3131
"symfony/polyfill-intl-messageformatter": "^1.12",
32-
"symfony/security-bundle": "5.1.*",
33-
"symfony/string": "5.1.*",
34-
"symfony/translation": "5.1.*",
32+
"symfony/security-bundle": "^5.1",
33+
"symfony/string": "^5.1",
34+
"symfony/translation": "^5.1",
3535
"symfony/twig-pack": "^1.0",
36-
"symfony/validator": "5.1.*",
36+
"symfony/validator": "^5.1",
3737
"symfony/webpack-encore-bundle": "^1.4",
38-
"symfony/yaml": "5.1.*",
38+
"symfony/yaml": "^5.1",
3939
"tgalopin/html-sanitizer-bundle": "^1.2",
4040
"twig/intl-extra": "^3.0",
4141
"twig/markdown-extra": "^3.0"
@@ -44,13 +44,13 @@
4444
"dama/doctrine-test-bundle": "^6.2",
4545
"doctrine/doctrine-fixtures-bundle": "^3.0",
4646
"friendsofphp/php-cs-fixer": "3.0.x-dev",
47-
"symfony/browser-kit": "5.1.*",
48-
"symfony/css-selector": "5.1.*",
49-
"symfony/debug-bundle": "5.1.*",
47+
"symfony/browser-kit": "^5.1",
48+
"symfony/css-selector": "^5.1",
49+
"symfony/debug-bundle": "^5.1",
5050
"symfony/maker-bundle": "^1.11",
51-
"symfony/phpunit-bridge": "5.1.*",
52-
"symfony/stopwatch": "5.1.*",
53-
"symfony/web-profiler-bundle": "5.1.*"
51+
"symfony/phpunit-bridge": "^5.1",
52+
"symfony/stopwatch": "^5.1",
53+
"symfony/web-profiler-bundle": "^5.1"
5454
},
5555
"config": {
5656
"platform": {

0 commit comments

Comments
 (0)