[Pkg-privacy-commits] [Git][pkg-privacy-team/mat2][master] CI: Introduce configuration to make use of CI as provided by salsa.d.o

Georg Faerber gitlab at salsa.debian.org
Fri Oct 5 09:54:37 BST 2018


Georg Faerber pushed to branch master at Privacy Maintainers / mat2


Commits:
0d1e4a70 by Georg Faerber at 2018-10-05T08:53:46Z
CI: Introduce configuration to make use of CI as provided by salsa.d.o

We're using gitlab-ci.yml, without the leading dot, as upstreams
.gitignore does ignore all files with leading dot by default.

- - - - -


1 changed file:

- + debian/gitlab-ci.yml


Changes:

=====================================
debian/gitlab-ci.yml
=====================================
@@ -0,0 +1,25 @@
+image: debian:sid
+
+build:
+  script:
+    - export DEBIAN_FRONTEND=noninteractive
+    - apt-get update
+    - apt-get -y upgrade
+    - apt-get -y dist-upgrade
+    - export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control`
+    - apt-get install -y --no-install-recommends build-essential dpkg-dev fakeroot git-buildpackage lintian pristine-tar $BUILD_DEPENDS
+    - apt-get -y autoremove --purge
+    - apt-get clean
+    - rm -rf /var/lib/apt/lists/*
+    - dpkg-checkbuilddeps
+    - echo "make branch current for gbp"
+    - git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
+    - gbp buildpackage -us -uc --git-ignore-branch --lintian-opts -iIE --pedantic
+    - mkdir results
+    - cp ../*.deb results/
+    - cp ../*.dsc results/
+    - cp ../*.changes results/
+  artifacts:
+    paths:
+    - results
+    expire_in: 3 days



View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/commit/0d1e4a703db33fadc89bdfe197b8cfe624d20b99

-- 
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/commit/0d1e4a703db33fadc89bdfe197b8cfe624d20b99
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-privacy-commits/attachments/20181005/3a6d5ec5/attachment-0001.html>


More information about the Pkg-privacy-commits mailing list