summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-02-17 11:39:50 +0100
committervarac <varacanero@zeromail.org>2017-03-02 10:10:38 +0100
commit5b6d7896c469c1c4a38bd5bdbe250c19b5a1a0e7 (patch)
treecb41f346a5a8f251ff4b91731c0bc30a1550085c /.gitlab-ci.yml
parent073dece4395c38a23ad2e19de4e66c0ec5a31879 (diff)
Build and test deb packages on 0xacab.org
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml48
1 files changed, 43 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 49844b4..f387b0f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,46 @@
stages:
- - test
+ #- test
+ - package
+ - test_package
-test:
- image: leapcode/soledad:latest
- stage: test
+.job_template: &job_definition
+ stage: package
+ image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
script:
- - tox --recreate
+ - build-build-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
+
+package:amd64:jessie:
+ variables:
+ #CI_DEBUG_TRACE: "true"
+ REPOREMOTE: "gitlab-runner@deb.leap.se"
+ REPOURL: "deb.leap.se/gitbuildpackage"
+ REPOREMOTE_OPTS: "-p 4422 -o StrictHostKeyChecking=no -i /etc/dockerbuild.id_rsa -o SendEnv=REPOSITORY"
+ REPOSITORY: "/srv/gitbuildpackage"
+ ARCH: "amd64"
+ DIST: "jessie"
+ REPOS: "jessie"
+ <<: *job_definition
+
+lintian:
+ variables:
+ ARCH: "amd64"
+ DIST: "jessie"
+ image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
+ stage: test_package
+ script: bash -x build-test-lintian --fail-on-warnings