Commit bbe593d0 authored by Claudio André's avatar Claudio André

CI: analyze source code quality

Analyze source code quality using GitLab Code Quality. It uses
Code Climate Engines, which are free and open source. It doesn’t require
any subscription.

Closes #10
parent 342ce480
......@@ -91,6 +91,21 @@ coverage:
except:
- /^wip\/.*/
codequality:
stage: thorough_tests
image: docker:latest
variables:
DOCKER_DRIVER: overlay
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 analyze -f json > codeclimate.json
artifacts:
paths: [codeclimate.json]
except:
- /^wip\/.*/
cppcheck:
<<: *build
stage: static_analysis
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment