add security step to CI

This commit is contained in:
Philipp Kunz 2018-01-27 02:20:41 +01:00
parent f60f17f91e
commit a91f56dacf
2 changed files with 8 additions and 4 deletions

View File

@ -8,6 +8,7 @@ cache:
stages: stages:
- mirror - mirror
- security
- test - test
- release - release
- trigger - trigger
@ -20,6 +21,12 @@ mirror:
tags: tags:
- docker - docker
security:
stage: security
script:
- npmci command yarn gobal add snyk
- npmci command snyk test
testLEGACY: testLEGACY:
stage: test stage: test
script: script:

View File

@ -7,10 +7,7 @@
"scripts": { "scripts": {
"test": "(npmts)", "test": "(npmts)",
"testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)", "testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)",
"devTest": "(npm test) && (node test.js --test true)", "security":"snyk test"
"reinstall": "(rm -r node_modules && npm install)",
"release": "(git pull origin master && npm version patch && git push origin master && git checkout release && git merge master && git push origin release && git checkout master)",
"startdev": "(git checkout master && git pull origin master)"
}, },
"repository": { "repository": {
"type": "git", "type": "git",