.gitlab-ci.yml
changeset 378 78f52faff595
parent 377 92d8b4611335
child 379 07fe5bb08599
--- a/.gitlab-ci.yml	Tue Jun 18 15:34:46 2019 +0200
+++ b/.gitlab-ci.yml	Tue Jun 18 16:24:13 2019 +0200
@@ -24,5 +24,21 @@
         - pip install pylint --quiet
         - pylint src/
 
-include:
-    - template: Code-Quality.gitlab-ci.yml
+quality:
+    stage: test
+    image: docker:stable
+    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
+    artifacts:
+        reports:
+            codequality: gl-code-quality-report.json