Skip to content

Commit 07f34e7

Browse files
committed
travis wip
1 parent 362a27f commit 07f34e7

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.travis.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
language: php
22

33
php:
4-
- 5.3
5-
- 5.4
6-
- 5.5
4+
#- 5.3
5+
#- 5.4
6+
#- 5.5
77
- 5.6
88

99
env:
10-
- MONGODB_VERSION=alpha
10+
global:
11+
- KEY_SERVER="hkp://keyserver.ubuntu.com:80"
12+
- MONGO_REPO_URI="http://repo.mongodb.com/apt/ubuntu"
13+
- MONGO_REPO_TYPE="precise/mongodb-enterprise/"
14+
- SOURCES_LOC="/etc/apt/sources.list.d/mongodb.list"
15+
matrix:
16+
- DRIVER_VERSION=alpha SERVER_VERSION=2.4
17+
- DRIVER_VERSION=alpha SERVER_VERSION=2.6
18+
- DRIVER_VERSION=alpha SERVER_VERSION=3.0
1119

1220
services: mongodb
1321

22+
before_install:
23+
- sudo apt-key adv --keyserver ${KEY_SERVER} --recv 7F0CEB10
24+
- echo "deb ${MONGO_REPO_URI} ${MONGO_REPO_TYPE}${SERVER_VERSION} multiverse" | sudo tee ${SOURCES_LOC}
25+
- sudo apt-get update -qq
26+
27+
install:
28+
- if dpkg --compare-versions ${SERVER_VERSION} le "2.4"; then export SERVER_PACKAGE=mongodb-10gen-enterprise; else export SERVER_PACKAGE=mongodb-enterprise; fi
29+
- sudo apt-get install ${SERVER_PACKAGE}
30+
1431
before_script:
15-
- mongo --eval 'tojson(db.runCommand({buildInfo:1}))'
16-
- pecl install -f mongodb-${MONGODB_VERSION}
32+
- sudo service mongod start
33+
- mongod --version
34+
- pecl install -f mongodb-${DRIVER_VERSION}
1735
- php --ri mongodb
1836
- composer install --dev --no-interaction --prefer-source

0 commit comments

Comments
 (0)