summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authormicah <micah@riseup.net>2017-03-08 15:34:21 +0000
committermicah <micah@riseup.net>2017-03-08 15:34:21 +0000
commitc32a6f0f0793dce999731b61aa3ec64568a25fdd (patch)
treead4d187053fffcf866f81f0c9c6a53ccaf0f0faf /.gitlab-ci.yml
parent178a8c15387c9fc4613bb82c062d32660ff9391f (diff)
parent1dc59abebd97a14bb5cf14d232ce51a503084a6d (diff)
Merge branch 'build_packages' into 'master'
Build packages See merge request !6
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml38
1 files changed, 37 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 49844b4..aeee721 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +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:
image: leapcode/soledad:latest
stage: test
script:
- - tox --recreate
+ - tox --recreate
+
+package:amd64_jessie:
+ variables:
+ ARCH: "amd64"
+ DIST: "jessie"
+ <<: *job_definition
+
+package:amd64_stretch:
+ variables:
+ ARCH: "amd64"
+ DIST: "stretch"
+ <<: *job_definition