summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..12fbd96
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,32 @@
+stages:
+ - test
+ - package
+ - publish
+
+test: &test
+ stage: test
+ image: $CI_REGISTRY/docker-images/layers:jessie-ruby
+ script:
+ - 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
+
+