From 0f29bd3ed7e91c9ba2526e2661dde0e683ec2cb9 Mon Sep 17 00:00:00 2001 From: Varac Date: Mon, 28 Aug 2017 16:32:12 +0200 Subject: [pkg] Build debs for zesty and stretch - Resolves: #9008 --- .gitlab-ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3