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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
cache:
directories:
- $HOME/.composer/cache

branches:
except:
- /^analysis-.*$/
Expand All @@ -14,23 +15,29 @@ php:
- 7.0
- 7.1
- hhvm

env:
global:
- TEST_COMMAND="composer test"
matrix:
- SYMFONY_VERSION=3.2.*
- SYMFONY_VERSION=3.1.*
- SYMFONY_VERSION=2.8.*
- SYMFONY_VERSION=2.7.*

matrix:
fast_finish: true
include:
- php: 5.5
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=2.7.*
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
- php: 7.1
env: DEPENDENCIES=dev
# Test against LTS versions
- php: 7.0
env: SYMFONY_VERSION=2.7.*
- php: 7.0
env: SYMFONY_VERSION=2.8.*

before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;

install:
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction

script:
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
"php-http/curl-client": "^1.0",
"php-http/message": "^1.0",
"php-http/message-factory": "^1.0.2",
"symfony/twig-bundle": "^2.7 || ^3.0",
"symfony/twig-bridge": "^2.7 || ^3.0",
"symfony/asset": "^2.7 || ^3.0",
"symfony/templating": "^2.7 || ^3.0",
"symfony/dependency-injection": "^2.7 || ^3.0",
"symfony/web-profiler-bundle": "^2.7 || ^3.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.0",
"symfony/symfony": "^2.3 || ^3.0",
"guzzlehttp/psr7": "^1.3",
"nyholm/nsa": "^1.0"
},
Expand Down