diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 33 |
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 + + |