--- a/.gitlab-ci.yml Wed Jun 12 15:56:45 2019 +0200
+++ b/.gitlab-ci.yml Wed Jun 12 16:20:50 2019 +0200
@@ -3,7 +3,7 @@
cache:
key: PYRAMID_CACHE
paths:
- - /var/local/env/pyams/eggs/
+ - /var/local/env/pyams/eggs
before_script:
- export http_proxy=http://172.17.0.1:3128/
@@ -17,5 +17,20 @@
script:
- ./bin/test
-after_script:
- - ls /var/local/env/pyams/eggs
+code_quality:
+ 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/src"
+ --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