File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change
1
+ dist : trusty
2
+
1
3
language : php
2
4
3
5
php :
@@ -13,15 +15,29 @@ services:
13
15
- mongodb
14
16
- mysql
15
17
16
- # addons:
17
- # apt:
18
- # sources:
19
- # - mongodb-3.0-precise
20
- # packages:
21
- # - mongodb-org-server
18
+ matrix :
19
+ fast_finish : true
20
+ include :
21
+ - php : 7.1
22
+ addons :
23
+ apt :
24
+ sources :
25
+ - sourceline : " deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
26
+ key_url : " https://www.mongodb.org/static/pgp/server-3.4.asc"
27
+ - " mongodb-upstart"
28
+ packages : ['mongodb-org-server']
29
+ - php : 7.2
30
+ addons :
31
+ apt :
32
+ sources :
33
+ - sourceline : " deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
34
+ key_url : " https://www.mongodb.org/static/pgp/server-3.4.asc"
35
+ - " mongodb-upstart"
36
+ packages : ['mongodb-org-server']
22
37
23
38
before_script :
24
- # - pecl install mongodb
39
+ - if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-${DRIVER_VERSION}; fi
40
+ - if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then composer config "platform.ext-mongo" "1.6.16" && composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}"; fi
25
41
- mysql -e 'create database unittest;'
26
42
- travis_retry composer self-update
27
43
- travis_retry composer install --no-interaction
You can’t perform that action at this time.
0 commit comments