2019-08-06 02:08:42 +00:00
|
|
|
dist: bionic
|
|
|
|
|
2018-09-27 06:46:45 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2019-12-26 11:14:53 +00:00
|
|
|
- "10"
|
|
|
|
- "12"
|
|
|
|
- "13"
|
2018-09-27 06:46:45 +00:00
|
|
|
|
|
|
|
cache:
|
2019-08-06 02:05:14 +00:00
|
|
|
npm: true
|
2018-09-27 06:46:45 +00:00
|
|
|
|
|
|
|
script:
|
2019-12-26 11:11:36 +00:00
|
|
|
- npm run lint
|
|
|
|
- npm run test
|
|
|
|
|
|
|
|
after_script:
|
2019-12-26 13:23:11 +00:00
|
|
|
- if ([[ $TRAVIS_EVENT_TYPE == "push" ]] || [[ $TRAVIS_EVENT_TYPE == "cron" ]]) && [[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_NODE_VERSION == "12" ]]; then
|
|
|
|
npm install snyk;
|
|
|
|
snyk auth $SNYK_TOKEN;
|
|
|
|
snyk test;
|
|
|
|
snyk protect;
|
|
|
|
snyk monitor;
|
|
|
|
fi
|
2019-12-29 04:12:19 +00:00
|
|
|
- npm install codecov
|
|
|
|
- codecov
|