summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b6743a1..18ab30d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ stages:
- code-check
- build
- tests
+ - package
- benchmark
image: 0xacab.org:4567/leap/soledad:latest
@@ -20,6 +21,26 @@ cache:
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/*'
+
code-check:
stage: code-check
script:
@@ -75,3 +96,17 @@ build_docker_image:
docker build -t ${CI_REGISTRY_IMAGE}:latest testing/docker
docker push ${CI_REGISTRY_IMAGE}:latest
fi
+
+package:amd64_jessie:
+ variables:
+ ARCH: "amd64"
+ DIST: "jessie"
+ REPONAMES: "platform"
+ <<: *job_definition
+
+package:amd64_stretch:
+ variables:
+ ARCH: "amd64"
+ DIST: "stretch"
+ REPONAMES: "platform"
+ <<: *job_definition