summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gonzalez <ogonzalez@gitlab.com>2019-08-09 03:30:40 +0000
committerOlivier Gonzalez <ogonzalez@gitlab.com>2019-08-09 03:30:40 +0000
commit5a285b70c36b99ab22345b968471236ff3803ed3 (patch)
tree2c3cb1eaf6b8f7aa855592bea184062046f019f6
parent9d3c0ae7b3adc277832ffb565a7882fbef746dd4 (diff)
Use vendored template for code quality
-rw-r--r--.gitlab-ci.yml18
1 files changed, 2 insertions, 16 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f0dabd7..0e09aa9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,7 +6,8 @@ variables:
TMP_IMAGE: $CI_REGISTRY_IMAGE/tmp:$CI_COMMIT_SHA
include:
- - template: Security/Container-Scanning.gitlab-ci.yml
+ - template: Container-Scanning.gitlab-ci.yml
+ - template: Jobs/Code-Quality.gitlab-ci.yml
services:
- docker:stable-dind
@@ -26,21 +27,6 @@ build commit:
- docker build -t $TMP_IMAGE .
- docker push $TMP_IMAGE
-code_quality:
- image: docker:stable
- stage: test
- allow_failure: true
- script:
- - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- - docker run
- --env SOURCE_CODE="$PWD"
- --volume "$PWD":/code
- --volume /var/run/docker.sock:/var/run/docker.sock
- "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
- artifacts:
- reports:
- codequality: gl-code-quality-report.json
-
container_scanning:
variables:
CI_APPLICATION_REPOSITORY: $CI_REGISTRY_IMAGE/tmp # only predefined variables are parameter-expanded (no $TMP_IMAGE)