Skip to content

Commit

Permalink
Update scripts to test with three versions of Symfony.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Nov 30, 2017
1 parent 9ecd131 commit 4a9ceba
Show file tree
Hide file tree
Showing 21 changed files with 6,490 additions and 404 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -26,6 +26,7 @@
!bin/console
!bin/symfony_requirements
/vendor/
/dependencies/*/vendor/

# Assets and user uploads
/web/bundles/
Expand All @@ -47,4 +48,4 @@
# Backup entities generated with doctrine:generate:entities command
*/Entity/*~

.idea
.idea
54 changes: 21 additions & 33 deletions .travis.yml
@@ -1,51 +1,39 @@
language: php

branches:
# Only test the master branch and SemVer tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

matrix:
fast_finish: true
include:
-
php: 7.1
env: 'HIGHEST_LOWEST="update" STABILITY="RC"'
-
php: 7.1
-
php: 7.0.11
-
php: 5.6
-
php: 5.5
env: 'HIGHEST_LOWEST="update --prefer-lowest"'
-
php: 5.4
env: 'HIGHEST_LOWEST="update --prefer-lowest"'
- php: 7.2
env: 'SCENARIO=symfony4 HIGHEST_LOWEST="update"'
- php: 7.1
env: 'SCENARIO=symfony4'
- php: 7.0.11
env: 'SCENARIO=symfony3 HIGHEST_LOWEST="update"'
- php: 7.0.11
- php: 5.6
- php: 5.5
- php: 5.4
env: 'SCENARIO=symfony2 HIGHEST_LOWEST="update --prefer-lowest'

sudo: false

cache:
apt: true
directories:
- "$HOME/.composer/cache"
- "vendor"

before_install:
- composer selfupdate

install:
# Load composer dependencies.
- composer validate --no-check-all --ansi
# If running a highest/lowest dependencies test, get rid of composer.lock
- |
if [ -n "$HIGHEST_LOWEST" ] ; then
rm composer.lock
composer config --unset platform.php
composer config minimum-stability ${STABILITY-stable}
fi
- 'composer -n ${HIGHEST_LOWEST-install} --prefer-dist'
- composer why symfony/console
# Print out all of the installed packages in alphabetical order, with versions
- composer licenses
- 'composer scenario "${SCENARIO}" "${HIGHEST_LOWEST-install}"'

script:
- ./scripts/run-tests.sh
- composer test

after_success:
- ./vendor/bin/coveralls -vvv
- travis_retry php vendor/bin/coveralls -v
18 changes: 17 additions & 1 deletion composer.json
Expand Up @@ -24,11 +24,27 @@
"satooshi/php-coveralls": "^1.0.2|dev-master",
"squizlabs/php_codesniffer": "^2.7"
},
"scripts": {
"cs": "phpcs -n --standard=PSR2 src tests --exclude=Generic.Files.LineLength",
"cbf": "phpcbf -n --standard=PSR2 src tests --exclude=Generic.Files.LineLength",
"unit": "phpunit",
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"test": [
"@lint",
"@unit",
"@cs"
],
"scenario": "tests/scripts/install-scenario",
"post-update-cmd": "tests/scripts/prep-dependencies"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "5.6"
"php": "5.5"
}
},
"extra": {
Expand Down

0 comments on commit 4a9ceba

Please sign in to comment.