mirror of https://github.com/curbengh/hexo-yam
27 lines
470 B
YAML
27 lines
470 B
YAML
dist: bionic
|
|
|
|
language: node_js
|
|
node_js:
|
|
- "10"
|
|
- "12"
|
|
- "13"
|
|
- "14"
|
|
|
|
cache:
|
|
npm: true
|
|
|
|
script:
|
|
- npm run lint
|
|
- npm run test
|
|
|
|
after_script:
|
|
- 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
|
|
- npm install codecov
|
|
- codecov
|