diff options
| -rw-r--r-- | .codeclimate.yml | 19 | ||||
| -rw-r--r-- | .gitlab-ci.yml | 13 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..172b2e3 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,19 @@ +--- +engines: + bundler-audit: + enabled: true + duplication: + enabled: true + config: + languages: + - ruby + fixme: + enabled: true + rubocop: + enabled: true +exclude_paths: +- spec/ +- lib/vendor/ +- go/vendor/ +- tmp/ +- coverage/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52cc0df..20bd7ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,3 +70,16 @@ go:1.6: go:1.5: <<: *go_definition image: golang:1.5 + +codeclimate: + before_script: [] + 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] |
