diff options
author | Varac <varac@leap.se> | 2017-06-22 11:55:19 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-06-26 12:20:29 +0200 |
commit | fbf185332d9949e773c48db0de85680aae4d0690 (patch) | |
tree | 964e79ee24296b6da0014fd44de8b7351bb1ed8e | |
parent | bd9f7ecc1e22bce1b35e28ce948b87bd411bcbfd (diff) |
[pkg] Add package building stage
-rw-r--r-- | .gitlab-ci.yml | 35 |
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 |