-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.travis.yml
51 lines (41 loc) · 1.06 KB
/
.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
44
45
46
47
48
49
50
language: node_js
env:
# global:
# matrix:
# - MONGODB=3.6.4
# - MONGODB=4.0.19
matrix:
MONGODB=3.6.4
MONGODB=4.0.19
- SENECA_VER=seneca@plugin
MONGODB=3.6.4
- SENECA_VER=seneca@plugin
MONGODB=4.0.19
- SENECA_VER=senecajs/seneca
MONGODB=3.6.4
- SENECA_VER=senecajs/seneca
MONGODB=4.0.19
node_js:
- "10"
- "12"
- "13"
- "14"
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
before_script:
- npm uninstall seneca
- npm install ${SENECA_VER}
- 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
script:
- npm test
- npm audit
after_script:
- pkill mongod
- npm run coverage