Skip to content

Commit b55b8ff

Browse files
committed
Add ODM to require-dev
With the necessary dependencies on Travis-CI to ensure the build will run properly. Following the same approach as https://github.com/doctrine/mongodb/blob/1.6.3/.travis.yml#L61 (for PHP 7+ installation).
1 parent fc9a633 commit b55b8ff

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ php:
33
- 7.1
44
- 7.2
55
before_script:
6+
- pecl install -f mongodb-stable
67
- composer self-update
78
- composer install
89
script:

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@
2525
"slevomat/coding-standard": "^4.5.2",
2626
"doctrine/common": "^2.7",
2727
"doctrine/orm": "^2.5",
28-
"doctrine/collections": "^1.0"
28+
"doctrine/collections": "^1.0",
29+
"doctrine/mongodb-odm": "^1.2",
30+
"alcaeus/mongo-php-adapter": "^1.1"
2931
},
3032
"conflict": {
3133
"doctrine/common": "<2.7",
3234
"doctrine/orm": "<2.5",
33-
"doctrine/collections": "<1.0"
35+
"doctrine/collections": "<1.0",
36+
"doctrine/mongodb-odm": "<1.2"
3437
},
3538
"autoload": {
3639
"psr-4": {
@@ -39,5 +42,10 @@
3942
},
4043
"autoload-dev": {
4144
"classmap": ["tests/"]
45+
},
46+
"config": {
47+
"platform": {
48+
"ext-mongo": "1.6.16"
49+
}
4250
}
4351
}

0 commit comments

Comments
 (0)