UNPKG

571 BYAMLView Raw
1language: node_js
2node_js:
3 - "10"
4services: mongodb
5cache:
6 directories:
7 - node_modules
8before_script:
9 - sleep 15
10 - mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
11install:
12 - npm install -g codecov
13 - npm install -g istanbul@^1.0.0-alpha.2
14
15jobs:
16 include:
17 - stage: "Coverage"
18 script:
19 - npm install
20 - istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
21 - codecov
22 if: branch = master
23 - stage: "Testing"
24 script: npm test
25 if: branch = master
\No newline at end of file