summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-12 15:34:59 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-14 19:26:35 +0300
commit1f941ee0b09af952c5d90ed825789344896f1495 (patch)
treead97b8229a49ed77a16fc30e57834b58ae9cb265 /.gitlab-ci.yml
parent423ed22abf99180554b818c8aebe393789d0bbb5 (diff)
downloadgitlab-ce-1f941ee0b09af952c5d90ed825789344896f1495.tar.gz
Add codeclimate job to .gitlab-ci.yml
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b442e48a3d0..26fa9e9fd87 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -527,3 +527,18 @@ cache gems:
only:
- master@gitlab-org/gitlab-ce
- master@gitlab-org/gitlab-ee
+
+codeclimate:
+ before_script: []
+ image: docker:latest
+ stage: post-test
+ variables:
+ SETUP_DB: "false"
+ 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]