diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2018-04-17 20:48:32 +0000 |
---|---|---|
committer | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2018-04-29 13:32:01 +0200 |
commit | 349d66b20718adf42faed28109da08bbbb5867b5 (patch) | |
tree | 1fba68ce445deed1e60ff7f16b5635c13034b861 | |
parent | 9955608e2fde61d90e6916b8d93bce1ff5597ad4 (diff) |
update debian/gitlab-ci.yml (using salsa.debian.org/go-team/ci/cmd/ci)
Gbp-Dch: Ignore
-rw-r--r-- | debian/gitlab-ci.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml new file mode 100644 index 0000000..5c8c31b --- /dev/null +++ b/debian/gitlab-ci.yml @@ -0,0 +1,28 @@ + +# auto-generated, DO NOT MODIFY. +# The authoritative copy of this file lives at: +# https://salsa.debian.org/go-team/ci/blob/master/cmd/ci/gitlabciyml.go + +# TODO: publish under debian-go-team/ci +image: stapelberg/ci2 + +test_the_archive: + artifacts: + paths: + - before-applying-commit.json + - after-applying-commit.json + script: + # Create an overlay to discard writes to /srv/gopath/src after the build: + - "rm -rf /cache/overlay/{upper,work}" + - "mkdir -p /cache/overlay/{upper,work}" + - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src" + - "export GOPATH=/srv/gopath" + - "export GOCACHE=/cache/go" + # Build the world as-is: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json" + # Copy this package into the overlay: + - "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'" + - "pgt-gopath -dsc /tmp/export/*.dsc" + # Rebuild the world: + - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json" + - "ci-diff before-applying-commit.json after-applying-commit.json" |