Skip to content

Commit 7fe26f6

Browse files
committed
PHPC-1333: Use distro-specific server binary
Additionally, force 14.04 when testing server 3.0.x since it is not available on 16.04
1 parent c5562a3 commit 7fe26f6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
global:
1212
- TEST_PHP_ARGS="-q -s output.txt -g XFAIL,FAIL,BORK,WARN,LEAK,SKIP -x --show-diff"
1313
- REPORT_EXIT_STATUS=1
14+
- SERVER_DISTRO=ubuntu1604
1415
- SERVER_VERSION=4.0.0
1516
- DEPLOYMENT=STANDALONE
1617

@@ -22,6 +23,8 @@ matrix:
2223
- TEST_PHP_ARGS="-q -s output.txt -x --show-diff"
2324
- php: 5.5
2425
dist: trusty
26+
env:
27+
- SERVER_DISTRO=ubuntu1404
2528
- php: 5.6
2629
- php: 7.0
2730
- php: 7.1
@@ -49,11 +52,15 @@ matrix:
4952
env:
5053
- DEPLOYMENT=REPLICASET_AUTH
5154
- php: 7.1
55+
dist: trusty
5256
env:
57+
- SERVER_DISTRO=ubuntu1404
5358
- SERVER_VERSION=3.0.15
5459
- DEPLOYMENT=REPLICASET_OLD
5560
- php: 7.1
61+
dist: trusty
5662
env:
63+
- SERVER_DISTRO=ubuntu1404
5764
- SERVER_VERSION=3.0.15
5865
- DEPLOYMENT=STANDALONE_OLD
5966
- php: 7.1
@@ -72,9 +79,9 @@ before_install:
7279
- openssl aes-256-cbc -K $encrypted_b354efda2943_key -iv $encrypted_b354efda2943_iv -in .travis.scripts/atlas-uris.txt.enc -out .travis.scripts/atlas-uris.txt -d || true
7380
- pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
7481
- .travis.scripts/before_install.sh
75-
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-${SERVER_VERSION}.tgz
76-
- tar zxf mongodb-linux-x86_64-ubuntu1404-${SERVER_VERSION}.tgz
77-
- export PATH=${PWD}/mongodb-linux-x86_64-ubuntu1404-${SERVER_VERSION}/bin:${PATH}
82+
- export SERVER_FILENAME=mongodb-linux-x86_64-${SERVER_DISTRO}-${SERVER_VERSION}
83+
- wget -qO- http://fastdl.mongodb.org/linux/${SERVER_FILENAME}.tgz | tar xz
84+
- export PATH=${PWD}/${SERVER_FILENAME}/bin:${PATH}
7885
- mongod --version
7986
- mongo-orchestration --version
8087
- export MO_PATH=`python -c 'import mongo_orchestration; from os import path;

0 commit comments

Comments
 (0)