Skip to content

Commit cff3503

Browse files
committed
Fix lower dependencies
1 parent 88c9fb8 commit cff3503

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ sudo: false
55
matrix:
66
include:
77
- php: 5.4
8-
env: phpunit_exclude_groups=datetimeinterface
8+
env: phpunit_exclude_groups=datetimeinterface dependencies=lowest
99
- php: 5.5
1010
- php: 5.6
1111
- php: 7.0
1212
- php: 7.1
13+
- php: 7.1
14+
env: dependencies=lowest
1315
- php: 7.2
16+
env: dependencies=lowest
1417

1518
cache:
1619
directories:
@@ -24,15 +27,18 @@ before_install:
2427
- if [[ "$TRAVIS_PHP_VERSION" != 5.* ]]; then cp composer7.json composer.json; fi
2528

2629
install:
27-
- composer install --prefer-dist
30+
- |
31+
if [[ "$dependencies" = "lowest" ]]; then
32+
composer update --prefer-lowest --prefer-stable -n
33+
else
34+
composer install --prefer-dist
35+
fi
2836
2937
script:
3038
- |
3139
if [[ ! $phpunit_exclude_groups ]]; then
32-
echo "Debug: 'bin/phpunit -c tests/'"
3340
bin/phpunit -c tests/
3441
else
35-
echo "Debug: 'bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups'"
3642
bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups
3743
fi
3844

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"doctrine/orm": ">=2.5.0",
4848
"doctrine/common": ">=2.5.0",
4949
"symfony/yaml": "~2.6|~3.0|~4.0",
50-
"phpunit/phpunit": "^4.8|^5.7|^6.5"
50+
"phpunit/phpunit": "^4.8.35|^5.7|^6.5"
51+
},
52+
"conflict": {
53+
"doctrine/annotations": "<1.2"
5154
},
5255
"suggest": {
5356
"doctrine/mongodb-odm": "to use the extensions with the MongoDB ODM",

composer7.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"behat/transliterator": "~1.2",
4343
"doctrine/common": "~2.4"
4444
},
45-
"replace": {
45+
"provide": {
4646
"ext-mongo": "1.6.12"
4747
},
4848
"require-dev": {
@@ -51,7 +51,12 @@
5151
"doctrine/orm": ">=2.5.0",
5252
"doctrine/common": ">=2.5.0",
5353
"symfony/yaml": "~2.6|~3.0|~4.0",
54-
"phpunit/phpunit": "^4.8|^5.7|^6.5"
54+
"phpunit/phpunit": "^5.7|^6.5"
55+
},
56+
"conflict": {
57+
"doctrine/annotations": "<1.2",
58+
"doctrine/mongodb": "<1.3",
59+
"sebastian/comparator": "<2.0"
5560
},
5661
"suggest": {
5762
"doctrine/mongodb-odm": "to use the extensions with the MongoDB ODM",

0 commit comments

Comments
 (0)