Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,47 @@ env:
- PATH="$HOME/.symfony/bin:$PATH"

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

# Run tests against dev (currently 5.1.x-dev)
- php: 7.3
env: STABILITY=dev ACTION=update

# Run tests against dev-master (currently 5.2.x-dev)
- php: 7.3
env: STABILITY=dev SYMFONY=5.* ACTION=update

before_install:
- '[[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || phpenv config-rm xdebug.ini'
# Set memory to max (memory fail).
- '[[ "$ACTION" == "install" ]] || echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini'
# Set stability to dev to allow 4.4dev and 5.0dev.
- '[[ "$ACTION" == "install" ]] || composer config minimum-stability dev'
# Change version of symfony when need.
- '[[ "$ACTION" == "install" ]] || composer config extra.symfony.require $SYMFONY'
- phpenv config-rm xdebug.ini || true
# Change minimum-stability to allow upcoming versions (dev | alpha | beta | RC)
- '[[ -z $STABILITY ]] || composer config minimum-stability "$STABILITY"'
# Change extra.symfony.require used by symfony flex
- '[[ -z $SYMFONY ]] || composer config extra.symfony.require "$SYMFONY"'
# If it is available update the Symfony binary, if not install it.
- if symfony self:version; then symfony self:update ; else wget https://get.symfony.com/cli/installer -O - | bash ; fi

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

script:
# There's no need to load data fixtures before running tests because the project
# repository already includes a test database with all the fixtures needed to run the tests.
- ./bin/phpunit
# This checks that the source code follows the Symfony Code Syntax rules.
- '[[ "$TRAVIS_PHP_VERSION" == "7.4" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
- '[[ $TRAVIS_PHP_VERSION != "7.4" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
# This checks that the YAML config files contain no syntax errors.
- ./bin/console lint:yaml config --parse-tags
# This checks that the Twig template files contain no syntax errors.
Expand Down
38 changes: 19 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
"erusev/parsedown": "^1.6",
"sensio/framework-extra-bundle": "^5.1",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.1.*",
"symfony/console": "5.1.*",
"symfony/dotenv": "5.1.*",
"symfony/expression-language": "5.1.*",
"symfony/asset": "^5.1",
"symfony/console": "^5.1",
"symfony/dotenv": "^5.1",
"symfony/expression-language": "^5.1",
"symfony/flex": "^1.1",
"symfony/form": "5.1.*",
"symfony/framework-bundle": "5.1.*",
"symfony/intl": "5.1.*",
"symfony/mailer": "5.1.*",
"symfony/form": "^5.1",
"symfony/framework-bundle": "^5.1",
"symfony/intl": "^5.1",
"symfony/mailer": "^5.1",
"symfony/monolog-bundle": "^3.1",
"symfony/polyfill-intl-messageformatter": "^1.12",
"symfony/security-bundle": "5.1.*",
"symfony/string": "5.1.*",
"symfony/translation": "5.1.*",
"symfony/security-bundle": "^5.1",
"symfony/string": "^5.1",
"symfony/translation": "^5.1",
"symfony/twig-pack": "^1.0",
"symfony/validator": "5.1.*",
"symfony/validator": "^5.1",
"symfony/webpack-encore-bundle": "^1.4",
"symfony/yaml": "5.1.*",
"symfony/yaml": "^5.1",
"tgalopin/html-sanitizer-bundle": "^1.2",
"twig/intl-extra": "^3.0",
"twig/markdown-extra": "^3.0"
Expand All @@ -44,13 +44,13 @@
"dama/doctrine-test-bundle": "^6.2",
"doctrine/doctrine-fixtures-bundle": "^3.0",
"friendsofphp/php-cs-fixer": "3.0.x-dev",
"symfony/browser-kit": "5.1.*",
"symfony/css-selector": "5.1.*",
"symfony/debug-bundle": "5.1.*",
"symfony/browser-kit": "^5.1",
"symfony/css-selector": "^5.1",
"symfony/debug-bundle": "^5.1",
"symfony/maker-bundle": "^1.11",
"symfony/phpunit-bridge": "5.1.*",
"symfony/stopwatch": "5.1.*",
"symfony/web-profiler-bundle": "5.1.*"
"symfony/phpunit-bridge": "^5.1",
"symfony/stopwatch": "^5.1",
"symfony/web-profiler-bundle": "^5.1"
},
"config": {
"platform": {
Expand Down