summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-08-28 16:32:12 +0200
committerVarac <varac@leap.se>2017-08-30 20:41:42 +0200
commit0f29bd3ed7e91c9ba2526e2661dde0e683ec2cb9 (patch)
tree0d7eb354751585bd07d70908caa1951026eef59d
parent5292016becad94bfe603cdb7c4833b82ac07723a (diff)
[pkg] Build debs for zesty and stretch
- Resolves: #9008
-rw-r--r--.gitlab-ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 003d6da4..3c5842d3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,10 @@
+---
stages:
- test
- e2e
- bundle
- build_ui
+ - package
variables:
DOCKER_DRIVER: overlay
@@ -106,3 +108,43 @@ build_docker_image:
docker build -t ${CI_REGISTRY_IMAGE}:latest tests/docker
docker push ${CI_REGISTRY_IMAGE}:latest
fi
+
+.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_stretch:
+ variables:
+ ARCH: "amd64"
+ DIST: "stretch"
+ REPONAMES: "platform,client"
+ # Default is to fail on warnings, we disable it here
+ # unless a manpage is included (see #8895)
+ LINTIAN_OPTS: "-X filename-length"
+ <<: *job_definition
+
+package:amd64_zesty:
+ variables:
+ ARCH: "amd64"
+ DIST: "zesty"
+ REPONAMES: "client"
+ # Default is to fail on warnings, we disable it here
+ # unless a manpage is included (see #8895)
+ LINTIAN_OPTS: "-X filename-length"
+ <<: *job_definition