summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChris Elsworth <chris.elsworth@bytemark.co.uk>2017-01-31 11:12:10 +0000
committerChris Elsworth <chris.elsworth@bytemark.co.uk>2017-01-31 11:12:10 +0000
commit1586557ca5639d160300697cd65067536b66e5d1 (patch)
treeb3cb7c903e52eef5132acbf5d0038b83afe7330b /.gitlab-ci.yml
parentc68fe975ab4b47436bd90fa701b83a78793b0f32 (diff)
parent53f78a01f2fb514d61fdb076f5b749e03ffddb74 (diff)
Merge branch 'add-make-test' into 'master'
Add gitlab-ci Closes #13 See merge request !5
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b152e89
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,33 @@
+stages:
+ - test
+ - package
+ - publish
+
+test: &test
+ stage: test
+ image: $CI_REGISTRY/docker-images/layers:jessie-ruby
+ script:
+ - apt-get install attr ruby-ffi
+ - make test
+
+package: &package
+ image: $CI_REGISTRY/docker-images/layers:$DISTRO-deb
+ variables:
+ DISTRO: jessie
+ stage: package
+ script:
+ - package
+ artifacts:
+ paths:
+ - pkg/
+
+publish:
+ stage: publish
+ variables:
+ RSYNC_HOSTNAME: repo.bytemark.co.uk
+ tags:
+ - shell
+ script:
+ - publish
+
+