Avoid running autodevops sast job on GitLab CE

This commit is contained in:
Alessio Caiazza 2017-12-15 15:20:18 +01:00
parent 627a96875e
commit 8153f73432
No known key found for this signature in database
GPG Key ID: 8655B9CB5B8B512E
1 changed files with 12 additions and 1 deletions

View File

@ -89,7 +89,7 @@ sast:
POSTGRES_DB: "false"
allow_failure: true
script:
- /app/bin/run .
- sast .
artifacts:
paths: [gl-sast-report.json]
@ -232,6 +232,17 @@ production:
docker run ${cc_opts} codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json
}
function sast() {
case "$CI_SERVER_VERSION" in
*-ee)
/app/bin/run "$@"
;;
*)
echo "GitLab EE is required"
;;
esac
}
function deploy() {
track="${1-stable}"
name="$CI_ENVIRONMENT_SLUG"