diff options
author | varac <varacanero@zeromail.org> | 2017-03-08 16:14:51 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-03-17 05:51:59 -0500 |
commit | 14f781f4bc60065c8e752358d0d553842c12a5a8 (patch) | |
tree | 8127385406927fe2bf5ef9910c2cfb1cbad29213 /.gitlab-ci.yml | |
parent | fd839f93df3957abc50402fa4e206228429a5edb (diff) |
[pkg] Package for jessie and stretch
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc95387..f01074e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,2 +1,44 @@ +# Todo: +# - Move test stage at the beginning of pipeline once packaging is done +stages: + - package + - test + + +.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 --fail-on-warnings + - upload-package + # sleep 1h to allow debugging of running container + #- sleep 3600 + artifacts: + expire_in: 1w + paths: + - '*_*.xz' + - '*_*.dsc' + - '*_amd64.changes' + - '*.deb' + - 'results/*' + test: - script: tox + stage: test + image: "0xacab.org:4567/leap/gitlab-buildpackage:build_jessie_amd64" + script: + - tox --recreate + +package:amd64_jessie: + variables: + ARCH: "amd64" + DIST: "jessie" + <<: *job_definition + +package:amd64_stretch: + variables: + ARCH: "amd64" + DIST: "stretch" + <<: *job_definition |