Skip to content

Commit b2ae1c2

Browse files
committed
travis wip
1 parent 362a27f commit b2ae1c2

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.travis.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
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

12-
services: mongodb
20+
before_install:
21+
- sudo apt-key adv --keyserver ${KEY_SERVER} --recv 7F0CEB10
22+
- echo "deb ${MONGO_REPO_URI} ${MONGO_REPO_TYPE}${SERVER_VERSION} multiverse" | sudo tee ${SOURCES_LOC}
23+
- sudo apt-get update -qq
24+
25+
install:
26+
- if dpkg --compare-versions ${SERVER_VERSION} le "2.4"; then export SERVER_PACKAGE=mongodb-10gen-enterprise; else export SERVER_PACKAGE=mongodb-enterprise; fi
27+
- sudo apt-get install ${SERVER_PACKAGE}
1328

1429
before_script:
15-
- mongo --eval 'tojson(db.runCommand({buildInfo:1}))'
16-
- pecl install -f mongodb-${MONGODB_VERSION}
30+
- sudo service mongod start
31+
- mongod --version
32+
- pecl install -f mongodb-${DRIVER_VERSION}
1733
- php --ri mongodb
1834
- composer install --dev --no-interaction --prefer-source

0 commit comments

Comments
 (0)