summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2019-08-05 18:14:57 +0100
committerJavier Jardón <jjardon@gnome.org>2019-09-04 11:18:14 +0100
commit372c3362d766cb513a4dce9cc06c1a4a371dc1fe (patch)
tree01c05f5ba18ca6cd26c32bb40b86f79e00491819
parent2ece1287f75c3a1eaf4bd1a9f4f9c7b895fe3993 (diff)
downloadbuildstream-372c3362d766cb513a4dce9cc06c1a4a371dc1fe.tar.gz
.gitlab-ci.yml: Use new way to define code_quality job
See https://docs.gitlab.com/ee/ci/examples/code_quality.html Backported from 66664ddf14a40a0b29b7fb4f7f90ac10ef62f052
-rw-r--r--.gitlab-ci.yml25
1 files changed, 3 insertions, 22 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fb5050bd9..6a0d42ab9 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:
@@ -124,28 +127,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
- 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 #
#####################################################