forked from slanatech/swagger-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (25 loc) · 803 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
# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
sudo: false
language: node_js
node_js:
- "12"
- "14"
env:
- PROM_CLIENT_VERSION="11"
- PROM_CLIENT_VERSION="12"
- PROM_CLIENT_VERSION="13"
branches:
only:
- master # only run CI on the master branch
- /^PR / # also build pull requests
services:
- elasticsearch
before_script:
- sleep 10
- npm install prom-client@"$PROM_CLIENT_VERSION" # install specific prom-client version (a peer dependency)
script:
- npm run test
after_success:
- ls -R1 coverage-report/lcov.info # list the files (for debugging)
- cat coverage-report/lcov.info | node_modules/coveralls/bin/coveralls.js # send code-coverage data to Coveralls