summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2017-03-16 09:58:40 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2017-03-16 09:58:40 +0000
commitf18230549d129401c6f9fadb0903af75395ec6e1 (patch)
treee0535575dd5710761ccb566c455a37214b00ac94 /.gitlab-ci.yml
parent1091a3252042cb6fa9406c231a083707214a4170 (diff)
parentf255947aa8af363d6197476c6276eef28a682b1d (diff)
Merge branch '15-build-packages' into 'master'
Build for more distributions. Closes #15 See merge request !12
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml44
1 files changed, 39 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b152e89..8e1dee9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,10 +10,8 @@ test: &test
- apt-get install attr ruby-ffi
- make test
-package: &package
+.package: &package
image: $CI_REGISTRY/docker-images/layers:$DISTRO-deb
- variables:
- DISTRO: jessie
stage: package
script:
- package
@@ -21,6 +19,37 @@ package: &package
paths:
- pkg/
+package:wheezy:
+ <<: *package
+ variables:
+ DISTRO: wheezy
+
+package:jessie:
+ <<: *package
+ variables:
+ DISTRO: jessie
+
+package:stretch:
+ <<: *package
+ variables:
+ DISTRO: stretch
+
+package:precise:
+ <<: *package
+ variables:
+ DISTRO: precise
+
+package:trusty:
+ <<: *package
+ variables:
+ DISTRO: trusty
+
+package:xenial:
+ <<: *package
+ variables:
+ DISTRO: xenial
+
+
publish:
stage: publish
variables:
@@ -29,5 +58,10 @@ publish:
- shell
script:
- publish
-
-
+ dependencies:
+ - package:wheezy
+ - package:jessie
+ - package:stretch
+ - package:precise
+ - package:trusty
+ - package:xenial