Skip to content
Snippets Groups Projects
Commit ae927b81 authored by Javier Jardón's avatar Javier Jardón
Browse files

.gitlab-ci.yml: Add job to analyze project code quality with Code Climate CLI

See #431
parent b6a64313
No related branches found
No related tags found
1 merge request!431Add job to analyze project code quality with Code Climate CLI
......@@ -185,6 +185,28 @@ docs:
# Post stage #
#####################################################
# Check code quality with codeclimate
# This needs some refactoring; we probably just want to provide the codeclimate.json directly
# as an output of radon, with some conversion
#
codequality:
image: docker:stable
stage: post
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:
paths: [codeclimate.json]
# Collate coverage reports
#
coverage:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment