Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dev stability dependencies build job #39

Merged
merged 1 commit into from Oct 22, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions .travis.yml
Expand Up @@ -8,13 +8,13 @@ cache:

env:
global:
- deps=""
- COMPOSER_OPTIONS="--prefer-stable"

matrix:
fast_finish: true
include:
- php: 5.3
env: deps="low"
env: COMPOSER_OPTIONS="--prefer-lowest"
- php: 5.4
- php: 5.5
- php: 5.6
Expand All @@ -24,6 +24,7 @@ matrix:
- php: 5.6
env: SYMFONY_VERSION="3.1.x"
- php: 7.0
env: COMPOSER_OPTIONS=""
- php: hhvm

before_install:
Expand All @@ -33,5 +34,7 @@ before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --dev --no-update; fi

install:
- if [ "$deps" = "" ]; then composer install; fi
- if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable --prefer-dist; fi
- composer update $COMPOSER_OPTIONS

script:
- vendor/bin/phpunit
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this as the PHPUnit version that is shipped with Travis CI is built with symfony/yaml 3.1.x which may conflict with the installed version of the DependencyInjection component (the Yaml::PARSE_CONSTANT class constant is missing then).

5 changes: 5 additions & 0 deletions composer.json
Expand Up @@ -28,10 +28,15 @@
},
"require-dev": {
"matthiasnoback/symfony-dependency-injection-test": "~0.7",
"phpunit/phpunit": "^4.8||^5.3",
"symfony/asset": "^2.7||^3.1",
"symfony/framework-bundle": "~2.3|~3.0",
"symfony/security-bundle": "~2.3|~3.0",
"symfony/templating": "^2.3||^3.1",
"symfony/yaml": "^2.7||^3.1",
"mikey179/vfsStream": "1.*"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"Asm\\TranslationLoaderBundle\\": ""
Expand Down