forked from traderinteractive/tol-api-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
21 lines (21 loc) · 902 Bytes
/
Copy path.travis.yml
File metadata and controls
21 lines (21 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: php
php:
- 7.0
- 5.6
env:
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-org
services:
- redis-server
before_install:
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
- "sudo apt-get update"
- "sudo apt-get install ${DB_PACKAGE}"
before_script:
- composer self-update || true
- yes '' | pecl install -f mongodb-${EXT_VERSION}
# 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.
- 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'
script: ./build.php
after_script: ./vendor/bin/coveralls -v