Skip to content

Commit

Permalink
Merge pull request #46 from ocadotechnology/backlog-1045
Browse files Browse the repository at this point in the history
feat: Enable snyk-python testing
  • Loading branch information
roseteague authored May 3, 2019
2 parents a5728ef + 2d68ab7 commit 6e26e84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
global:
- REGISTRY_USER=ocadotechnologygitlab
- VCS_SOURCE="https://github.com/${TRAVIS_REPO_SLUG}"
- SNYK_MODE=WARN
- secure: "z0oUHGGWxqtNuOyGz5DGi83gmAUDcS9ksVJrYVBLGUvgxeUCoYtNyySlLE/81bbKyTdLdeqtv0kEKhCIP1G9a1P+f2D9UCuu/pTSgEgjUlbBJqA+3seckQWt/SnfWr3hU/ySqt0UtB47rRyttZBzQmYgf2ECmDhVASRi3B02ogNHW4wwFBUwwYllotKXijz6NyYO85tzE2SeNrO8G2z0UjpLZAQawL3Whx5ApQeMm6iotDkSoQdUY0BtVap3rjG6wiY5WCBraPMWjlEZKCrbs08T7qqSkiB/RklXAppSSwB5OaLsH68xVE1/ZaNvvKa1YutoubJytyKYHYtVLBOyDOyYYPVn/Kgch0jnLL5hLkoyz8PDrHw2Pop9j+yNUUbEEihQbVpsU518IGX0X/z/jiy/nIcFIBo7diXzg+3w425Nk8iRKdmfaOC/t9/+qhpo+ULVloZcVr2Wv6kM34RDoowjit4SVRCn7XFo5PibQO+5neV0jdS5F/NPCF1LdWBV5uxjlLxcMxwEVTi4uvufRBswpOI2P9B9HY2lF02eLtCC7w90A954uIX/Gjojqy0QMbzKfPCl3IV0Geq5lcYhu8Hz9GqOJC/b81KcnvWGNzKYJjUIAWIWxjremkTMS12dgE8DGTx8p7z7nepWRqV63zVIYcRMP22517wZkTNaxEE="
- secure: "E3TDS6rQtk6+yeywcVnHiAYOhzKAbUT4QR3yR0HckPa+t89NkJSnWW1BaBzzzI8tzQco5mgJsp1rnWf+9pS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hOfXqmvYSi6HlSuJIq17gN69DcM8A/5F5NarxsRBE+NlUz2EX4RalR4FaDC6LeHvRAObc9ElYgDvD7+q9ZbVJbcePuFXQeabUPQy/HKpPM3nJVSU/dOky3wKwpDSjhGViHJQh123pdFwCdABjiWd8qkblFGAI599+A+L74eBDgjET+r5/3s/7HvdG4aHl0aFQyAfIJVLUZGRUEXgkTK5YYCCs62x/vNSNOI="
Expand Down
1 change: 1 addition & 0 deletions .travis/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ testSnykIfEnabled() {
if [ -n "${SNYK_ORG}" ] && [ -n "${SNYK_TOKEN}" ]; then
local errors_found=false
snyk test --org="${SNYK_ORG}" --docker "${TRAVIS_REPO_SLUG}" --policy-path=.snyk --file=Dockerfile || errors_found=true
snyk test --org="${SNYK_ORG}" --policy-path=.snyk --file=requirements.txt || errors_found=true
if ${errors_found} && [ "${SNYK_MODE}" != "WARN" ] ; then
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions .travis/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
performSnykAnalysisIfEnabled() {
if [ -n "${SNYK_ORG}" ] && [ -n "${SNYK_TOKEN}" ]; then
snyk monitor --org="${SNYK_ORG}" --docker "${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT}" --policy-path=.snyk
snyk monitor --org="${SNYK_ORG}" --file=requirements.txt --policy-path=.snyk
if [[ -n "$TRAVIS_TAG" ]]; then
snyk monitor --org="${SNYK_ORG}" --docker "${TRAVIS_REPO_SLUG}:${TRAVIS_TAG}"
fi
Expand Down

0 comments on commit 6e26e84

Please sign in to comment.