summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-01-31 22:20:52 +0100
committervarac <varacanero@zeromail.org>2017-01-31 22:20:52 +0100
commit08ecab8e481086f46e300795d88779454b83883d (patch)
tree07b11999032ec3b957ad8f6e3c7dd3952d9fc301
parentf8c9b9cf1e75ca8290ba26139c470290829be6e2 (diff)
Add .gitlab-ci.yml to build packages
-rw-r--r--.gitlab-ci.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..edb90be
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,36 @@
+stages:
+ - package
+ - test_package
+
+
+.job_template: &job_definition
+ stage: package
+ image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
+ script: build-build-package
+ artifacts:
+ paths:
+ - '*_*.gz'
+ - '*_*.xz'
+ - '*_*.dsc'
+ - '*_amd64.changes'
+ - '*.deb'
+ - 'results/*'
+
+#test:
+# image: leapcode/soledad:latest
+# stage: test
+# script:
+# - tox --recreate
+
+package:amd64:jessie:
+ variables:
+ ARCH: "amd64"
+ DIST: "jessie"
+ <<: *job_definition
+
+lintian:
+ stage: test_package
+ script: build-test-lintian
+ tags:
+ - shell
+ - packaging