-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (31 loc) · 820 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: node_js
node_js:
- "11.10.1"
cache:
directories:
- node_modules
env:
- MONGODB=4.0.0
matrix:
fast_finish: true
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- mongo --version
- npm install
- npm run client:init
before_script:
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
- npm run build
- npm run client:build
- mongo --version
script:
- npm test
on:
branch: master
after_success:
- npm run coverage
after_script:
- pkill mongod