Skip to content

Commit 83f95ed

Browse files
committed
Add explicit mongo start
1 parent fe49676 commit 83f95ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
- DRIVER_VERSION="stable"
1212
- ADAPTER_VERSION="^1.0.0"
1313

14-
sudo: false
14+
sudo: true
1515

1616
services:
1717
- mongodb
@@ -41,6 +41,7 @@ before_script:
4141
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-${DRIVER_VERSION}; fi
4242
- 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
4343
- mysql -e 'create database unittest;'
44+
- sudo service mongod start
4445
- travis_retry composer self-update
4546
- travis_retry composer install --no-interaction
4647

0 commit comments

Comments
 (0)