Improve the Travis setup
- use the container-based infrastructure - persist the composer download cache between builds - test against dev versions of dependencies
This commit is contained in:
22
.travis.yml
22
.travis.yml
@@ -1,5 +1,11 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
@@ -11,12 +17,20 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- php: 5.5
|
- php: 5.5
|
||||||
env: SYMFONY_VERSION='2.3.*'
|
env: SYMFONY_VERSION='2.3.*'
|
||||||
- php: 5.5
|
# Test against dev dependencies
|
||||||
env: SYMFONY_VERSION='2.5.*@dev'
|
- php: 5.6
|
||||||
|
env: DEPS=dev
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- composer self-update
|
||||||
|
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;
|
||||||
|
- if [ "$DEPS" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer install --no-progress
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
|
- export PATH=./vendor/bin:$PATH
|
||||||
- composer install --prefer-source
|
|
||||||
- export PATH=./vendor/bin:$PATH
|
- export PATH=./vendor/bin:$PATH
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpspec/phpspec": "~2.0",
|
"phpspec/phpspec": "~2.0",
|
||||||
"behat/mink-goutte-driver": "~1.1@dev"
|
"behat/mink-goutte-driver": "~1.1"
|
||||||
},
|
},
|
||||||
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|||||||
Reference in New Issue
Block a user