From 5a285b70c36b99ab22345b968471236ff3803ed3 Mon Sep 17 00:00:00 2001 From: Olivier Gonzalez Date: Fri, 9 Aug 2019 03:30:40 +0000 Subject: Use vendored template for code quality --- .gitlab-ci.yml | 18 ++---------------- 1 file 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) -- cgit v1.2.3