Skip to content

Commit 0f621a0

Browse files
authored
build: updated CI to perform a matrix test on all supported mongodb versions
1 parent 0b43fae commit 0f621a0

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.travis.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
language: node_js
2-
dist: trusty
2+
dist: xenial
33
sudo: required
44
node_js:
5-
- "10"
6-
- "12"
7-
services:
8-
- mongodb
5+
- '10'
6+
- '12'
7+
env:
8+
- MONGODB=3.6.19
9+
- MONGODB=4.0.20
10+
- MONGODB=4.2.9
11+
- MONGODB=4.4.0
12+
13+
install:
14+
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-$MONGODB.tgz
15+
- tar xzf mongodb-linux-x86_64-ubuntu1604-$MONGODB.tgz
16+
- ${PWD}/mongodb-linux-x86_64-ubuntu1604-$MONGODB/bin/mongod --version
17+
918
before_script:
19+
- mkdir ${PWD}/mongodb-linux-x86_64-ubuntu1604-$MONGODB/data
20+
- ${PWD}/mongodb-linux-x86_64-ubuntu1604-$MONGODB/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-ubuntu1604-$MONGODB/data --logpath ${PWD}/mongodb-linux-x86_64-ubuntu1604-$MONGODB/mongodb.log --fork
1021
- sleep 15
1122
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
23+
- npm install
24+
1225
after_script:
1326
- istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --compilers js:babel-register && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

0 commit comments

Comments
 (0)