Skip to content

Commit

Permalink
add TravisCI examples
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-schmidtty committed Sep 22, 2020
1 parent 085f326 commit cf85d03
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions TravisCI/java_maven_example.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configure SNYK_TOKEN environment variable in your TravisCI project settings

language: java

script:
- npm install -g snyk
- snyk monitor --reachable-vulns # Enable reachable vulns, scan and publish results to Snyk
- snyk test --reachable-vulns # Enable reachable vulns
11 changes: 11 additions & 0 deletions TravisCI/node_example.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Configure SNYK_TOKEN environment variable in your TravisCI project settings

language: node_js

node_js:
- node

script:
- npm install -g snyk
- snyk monitor --all-projects # Autodetect all projects in working directory, scan and publish results to Snyk
- snyk test --all-projects # Autodetect all projects in working directory

0 comments on commit cf85d03

Please sign in to comment.