Skip to content

Commit 117537a

Browse files
wouterjdbu
authored andcommitted
Test against lowest version requirements
1 parent 87634cb commit 117537a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ cache:
1515
- $HOME/.composer/cache
1616

1717
env:
18-
- SYMFONY_VERSION=2.6.*
18+
- SYMFONY_VERSION=2.6.* PACKAGE_VERSION=high
1919

2020
matrix:
2121
include:
2222
- php: 5.6
23-
env: SYMFONY_VERSION=2.3.*
23+
env: SYMFONY_VERSION=2.3.* PACKAGE_VERSION=high
2424
- php: 5.6
25-
env: SYMFONY_VERSION=2.5.*
26-
- php: 5.6
27-
env: SYMFONY_VERSION=2.7.*
28-
- php: 5.6
29-
env: SYMFONY_VERSION=3.0.*
25+
env: SYMFONY_VERSION=2.5.* PACKAGE_VERSION=high
26+
- php: 5.3.3
27+
env: SYMFONY_VERSION=2.3.* PACKAGE_VERSION=low
3028
allow_failures:
3129
- php: 5.6
32-
env: SYMFONY_VERSION=2.7.*
30+
env: SYMFONY_VERSION=2.7.* PACKAGE_VERSION=high
3331
- php: 5.6
34-
env: SYMFONY_VERSION=3.0.*
32+
env: SYMFONY_VERSION=3.0.*@dev PACKAGE_VERSION=high
3533
- php: nightly
3634

3735
before_script:
36+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
3837
- composer self-update
39-
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
40-
- composer require symfony/symfony:${SYMFONY_VERSION} --prefer-dist
38+
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
39+
- if [[ "$PACKAGE_VERSION" == "high" ]]; then composer update --prefer-source; fi
40+
- if [[ "$PACKAGE_VERSION" == "low" ]]; then composer update --prefer-lowest --prefer-source; fi
4141
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
4242

4343
script: phpunit --coverage-text

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"symfony-cmf/core-bundle": "~1.1",
23-
"symfony-cmf/testing": "~1.1",
23+
"symfony-cmf/testing": "~1.1@stable",
2424
"matthiasnoback/symfony-dependency-injection-test": "0.*",
2525
"matthiasnoback/symfony-config-test": "0.*",
2626
"sonata-project/doctrine-phpcr-admin-bundle": "~1.1",

0 commit comments

Comments
 (0)