Skip to content

Commit d5690af

Browse files
committed
test against different dependency versions
* by default, run with latest stable versions * add a job with lowest stable constrained deps * run with upcoming releases of required deps
1 parent 4891bbd commit d5690af

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ php:
1010
- 7.1
1111
- hhvm
1212

13+
env:
14+
- COMPOSER_OPTIONS="--prefer-stable"
15+
1316
matrix:
1417
include:
18+
- php: 7.0
19+
env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
20+
- php: 7.0
21+
env: COMPOSER_OPTIONS=""
1522
- php: 7.1
1623
env: TEST_COVERAGE=true
1724
allow_failures:
@@ -26,7 +33,7 @@ before_install:
2633
- composer self-update
2734
- if [[ $TEST_COVERAGE ]]; then PHPUNIT_FLAGS="--coverage-clover clover.xml"; fi
2835

29-
install: travis_retry composer install --no-interaction --prefer-dist
36+
install: travis_retry composer update --no-interaction --prefer-dist $COMPOSER_OPTIONS
3037

3138
script:
3239
- vendor/bin/phpunit -v $PHPUNIT_FLAGS

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"friendsofphp/php-cs-fixer": "^1.8.0",
2121
"phpunit/phpunit": "^4.6.6"
2222
},
23+
"minimum-stability": "dev",
2324
"autoload": {
2425
"psr-0" : {
2526
"Sentry\\SentryBundle\\": "src/"

0 commit comments

Comments
 (0)