Skip to content

Commit 46a1abb

Browse files
committed
update travis config
1 parent 11a6c7e commit 46a1abb

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@ language: php
22
php:
33
- 7.0
44
- 5.6
5-
env:
6-
- DB_PACKAGE=mongodb-10gen
7-
- DB_PACKAGE=mongodb-org
8-
before_install:
9-
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
10-
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
11-
- "sudo apt-get update"
12-
- "sudo apt-get install ${DB_PACKAGE}"
5+
services:
6+
- mongodb
137
before_script:
148
- composer self-update
15-
- printf "\n" | pecl install --force mongodb
16-
# wait for mongo, start is only needed for 2.4 package, see http://tldp.org/LDP/abs/html/devref1.html for description of this syntax.
17-
- sudo service mongodb start; bash -c 'while ! exec 6<>/dev/tcp/localhost/27017; do echo "$(date) - still trying to connect to mongo"; sleep 1; done'
9+
- yes '' | pecl install -f mongodb-1.1
1810
script: ./build.php
1911
after_script: ./vendor/bin/coveralls -v

0 commit comments

Comments
 (0)