# HG changeset patch # User Thierry Florac # Date 1560349250 -7200 # Node ID c200ae872b06cb6ea2b2b2062c4a549ddc2ecc08 # Parent 69a51eacb3f19eacbb9d2ebbae538a8f38644a1d Added code quality checker diff -r 69a51eacb3f1 -r c200ae872b06 .gitlab-ci.yml --- 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