-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
20 lines (20 loc) · 920 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: php
php:
- 5.6
- 5.4
env:
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-org
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-org
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
- yes '' | pecl install -f mongo-${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