aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authortelyn <telyn@bytemark.co.uk>2018-01-25 11:14:03 +0000
committertelyn <telyn@bytemark.co.uk>2018-01-25 11:14:03 +0000
commitd9946b8c3fdddb95f4cb7457abf163afd65bee6b (patch)
treee4bf2d2200c070d0f1319d532ed491610efd1c02 /.gitlab-ci.yml
parent545e1fe086c2df69ebf45c6b2f6a61932a5b6637 (diff)
add codeclimate job and build thegem
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 07b992b..967e78e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,17 @@ stages:
- package
- publish
+codeclimate:
+ image: $CI_REGISTRY/docker-images/layers:stretch-codeclimate
+ stage: test
+ tags:
+ - docker-socket
+ script:
+ - codeclimate analyze -f json > codeclimate.json
+ artifacts:
+ paths: [codeclimate.json]
+
+
.test: &test
image: $CI_REGISTRY/docker-images/layers:$DISTRO-ruby
stage: test
@@ -38,6 +49,17 @@ test:stretch:
paths:
- pkg/
+package:gem:
+ stage: package
+ image: $CI_REGISTRY/docker-images/layers:jessie-ruby
+ artifacts:
+ paths:
+ - pkg
+ script:
+ - package
+ variables:
+ GEMFILE: mauve.gemspec
+
package:jessie:
<<: *package
variables: