From 66664ddf14a40a0b29b7fb4f7f90ac10ef62f052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Mon, 5 Aug 2019 18:14:57 +0100 Subject: .gitlab-ci.yml: Use new way to define code_quality job See https://docs.gitlab.com/ee/ci/examples/code_quality.html --- .gitlab-ci.yml | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94ab3dc74..bf0b8f557 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +include: + - template: Code-Quality.gitlab-ci.yml + image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:9-master-46405991 cache: @@ -293,30 +296,6 @@ overnight-tests-no-cache: tags: - overnight-tests -# Check code quality with gitlab's built-in feature. -# -code_quality: - image: docker:stable - stage: test - variables: - DOCKER_DRIVER: overlay2 - # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 - DOCKER_TLS_CERTDIR: "" - allow_failure: true - services: - - docker:stable-dind - 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 - except: - - schedules - artifacts: - paths: [gl-code-quality-report.json] - ##################################################### # Post stage # ##################################################### -- cgit v1.2.1