hexo-yam/.travis.yml

24 lines
425 B
YAML
Raw Normal View History

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:
- 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