File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
- dist : trusty
2
+ dist : xenial
3
3
sudo : required
4
4
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
+
9
18
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
10
21
- sleep 15
11
22
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
23
+ - npm install
24
+
12
25
after_script :
13
26
- 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
You can’t perform that action at this time.
0 commit comments