[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/sid] gitlab-ci: Build package

Guido Günther gitlab at salsa.debian.org
Tue Jan 14 08:50:49 GMT 2020



Guido Günther pushed to branch debian/sid at Libvirt Packaging Team / libvirt


Commits:
0c811d12 by Guido Günther at 2020-01-13T20:25:14+01:00
gitlab-ci: Build package

We unfortunately can't use salsa-ci's prebuilt pipeline since
that hangs on large jobs:
https://salsa.debian.org/salsa/support/issues/180

We redirct output to a file to work around:
https://salsa.debian.org/salsa/support/issues/191

- - - - -


1 changed file:

- + debian/salsa-ci.yml


Changes:

=====================================
debian/salsa-ci.yml
=====================================
@@ -0,0 +1,38 @@
+stages:
+  - build
+
+variables:
+  # Default docker image to use
+  LV_DOCKER_IMAGE: debian:unstable
+  LV_WORKING_DIR: $CI_PROJECT_DIR/debian/output
+
+build-debian-package:
+  image: ${LV_DOCKER_IMAGE}
+  stage: build
+  timeout: 3h
+  before_script:
+    - echo "man-db man-db/auto-update boolean false" | debconf-set-selections
+    - export DEBIAN_FRONTEND=noninteractive
+    - apt-get -y update
+    - apt-get -y install build-essential git-buildpackage pristine-tar
+    - apt-get -y build-dep .
+    - rm -f ../* || true
+  script:
+    - gbp dch -S -a --ignore-branch
+    - mkdir -p "${LV_WORKING_DIR}/tarballs"
+    - gbp export-orig --tarball-dir="${LV_WORKING_DIR}/tarballs"
+                      --pristine-tar
+    - gbp buildpackage --git-ignore-new
+                       --git-ignore-branch
+                       --git-export-dir="${LV_WORKING_DIR}/"
+                       --git-tarball-dir="${LV_WORKING_DIR}/tarballs"
+                        -j -b -uc -us > "${LV_WORKING_DIR}/build.log"
+  artifacts:
+    when: always
+    paths:
+      - "${LV_WORKING_DIR}/build.log"
+    # Once we run lintian/autopkg:
+    #  - "${LV_WORKING_DIR}/*.deb"
+    #  - "${LV_WORKING_DIR}/*.buildinfo"
+    #  - "${LV_WORKING_DIR}/*.changes"
+



View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/commit/0c811d12dbe6b16584c56254eeb8d816393454fe

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/commit/0c811d12dbe6b16584c56254eeb8d816393454fe
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20200114/ca9f8975/attachment-0001.html>


More information about the Pkg-libvirt-commits mailing list