summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-21 16:21:57 +0000
committerRobert Speicher <robert@gitlab.com>2017-06-21 16:21:57 +0000
commit15fe78cc2d16319c713b34ce39e85253454e0450 (patch)
tree2f28b040540e9f48e5e8672d8972dc05a1c70a75
parentbd59eb8dd0dd1404634b17ae77a6bdbca66bb6d0 (diff)
parent3ab088a2b83c7e87c060c798acac7e9f87f91918 (diff)
downloadgitlab-shell-15fe78cc2d16319c713b34ce39e85253454e0450.tar.gz
Merge branch 'dz-add-codequality' into 'master'
Add code quality job to gitlab-ci.yml See merge request !138
-rw-r--r--.codeclimate.yml19
-rw-r--r--.gitlab-ci.yml13
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]