# HG changeset patch # User Thierry Florac # Date 1561715387 -7200 # Node ID 7f5d40182b58c5efd44652e54ca5289cbcf6c8bd # Parent 18cd519c3d97b9869f6af1dd7b939fd688b905bb Tried another codequality syntax... diff -r 18cd519c3d97 -r 7f5d40182b58 .gitlab-ci.yml --- a/.gitlab-ci.yml Wed Jun 26 11:12:00 2019 +0200 +++ b/.gitlab-ci.yml Fri Jun 28 11:49:47 2019 +0200 @@ -24,6 +24,26 @@ - pip install pylint --quiet - pylint src/pyams_utils/ +quality: + stage: test + image: docker:latest + variables: + DOCKER_DRIVER: overlay + allow_failure: true + services: + - docker:dind + script: + - docker pull codeclimate/codeclimate + - VOLUME_PATH=/tmp/builds"$(echo $PWD | sed 's|^/[^/]*||')" + - docker run -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate validate-config + - ls -lash $PWD + - echo $PWD + - docker run --env CODECLIMATE_CODE="$VOLUME_PATH" -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate analyze + - ls -lash $PWD + artifacts: + reports: + codequality: codeclimate.json + #quality: # stage: test # image: docker:stable