summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-22 13:23:53 +0200
committerVarac <varac@leap.se>2017-06-22 14:12:37 +0200
commit8872a552178ae026a2cceeff783cd1f824cb20bb (patch)
tree5ba81a8ce9a94caabffa327d99be0e7777093ae5 /.gitlab-ci.yml
parent13de2b8da99cd74725baefd472694b407a507391 (diff)
Add .gitlab-ci.yml for packaging
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..09a28be
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,41 @@
+---
+stages:
+ - package
+
+before_script:
+ - echo "Running on ${HOST_HOSTNAME:=$(hostname)}"
+
+.job_template: &job_definition
+ stage: package
+ image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
+ script:
+ - "pwd; git describe"
+ - build-build-package
+ # Test the package with lintian
+ - build-test-lintian
+ - upload-package
+ # sleep 1h to allow debugging of running container
+ # - sleep 3600
+ artifacts:
+ expire_in: 1w
+ paths:
+ - '*_*.xz'
+ - '*_*.dsc'
+ - '*_amd64.changes'
+ - '*.deb'
+ - 'results/*'
+
+
+package:amd64_jessie:
+ variables:
+ ARCH: "amd64"
+ DIST: "jessie"
+ REPONAMES: "platform"
+ <<: *job_definition
+
+package:amd64_stretch:
+ variables:
+ ARCH: "amd64"
+ DIST: "stretch"
+ REPONAMES: "platform"
+ <<: *job_definition