# HG changeset patch # User Thierry Florac # Date 1560508889 -7200 # Node ID 4f86173ae2cf2b3f3e83a8f2f4fd42297f844d4a # Parent 2c95d34496f5ad0d9a03d0b85fdfa774de568505 Tried to re-implement code quality job diff -r 2c95d34496f5 -r 4f86173ae2cf .gitlab-ci.yml --- a/.gitlab-ci.yml Fri Jun 14 12:41:06 2019 +0200 +++ b/.gitlab-ci.yml Fri Jun 14 12:41:29 2019 +0200 @@ -21,3 +21,26 @@ script: - pip install pylint --quiet - pylint src/ + +codequality: + stage: quality + allow_failure: true + image: docker:latest + variables: + DOCKER_DRIVER: overlay2 + services: + - docker:dind + script: + - docker pull codeclimate/codeclimate + - docker run + --env CODECLIMATE_CODE="$PWD" + --volume "$PWD":/code + --volume /var/run/docker.sock:/var/run/docker.sock + --volume /tmp/cc:/tmp/cc codeclimate/codeclimate init + - docker run + --env CODECLIMATE_CODE="$PWD" + --volume "$PWD":/code + --volume /var/run/docker.sock:/var/run/docker.sock + --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json + artifacts: + paths: [codeclimate.json]