-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from stof/improve_travis_setup
Improve the CI setup
- Loading branch information
Showing
3 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
# 5.5 and 5.6 are already covered by the jobs running against specific Symfony versions. no need to duplicate them here | ||
- 7.0 | ||
- hhvm | ||
|
||
matrix: | ||
include: | ||
# force testing against Symfony LTS versions | ||
- php: 5.5 | ||
env: SYMFONY_VERSION=2.3.* | ||
- php: 5.6 | ||
env: SYMFONY_VERSION=2.7.* | ||
# Test against lowest dependencies | ||
- php: 5.6 | ||
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' | ||
|
||
env: | ||
- SYMFONY_VERSION=2.3.* | ||
- SYMFONY_VERSION=2.4.* | ||
- SYMFONY_VERSION=2.5.* | ||
before_install: | ||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi | ||
|
||
before_script: | ||
- composer self-update | ||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update | ||
- composer install --dev --prefer-source | ||
install: | ||
- composer update $COMPOSER_FLAGS | ||
|
||
script: phpunit --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters