Codebase list golang-github-go-kit-kit / a3058e5
update debian/gitlab-ci.yml (using salsa.debian.org/go-team/ci/cmd/ci) Gbp-Dch: Ignore Michael Stapelberg 5 years ago
1 changed file(s) with 28 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 # auto-generated, DO NOT MODIFY.
2 # The authoritative copy of this file lives at:
3 # https://salsa.debian.org/go-team/ci/blob/master/cmd/ci/gitlabciyml.go
4
5 # TODO: publish under debian-go-team/ci
6 image: stapelberg/ci2
7
8 test_the_archive:
9 artifacts:
10 paths:
11 - before-applying-commit.json
12 - after-applying-commit.json
13 script:
14 # Create an overlay to discard writes to /srv/gopath/src after the build:
15 - "rm -rf /cache/overlay/{upper,work}"
16 - "mkdir -p /cache/overlay/{upper,work}"
17 - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
18 - "export GOPATH=/srv/gopath"
19 - "export GOCACHE=/cache/go"
20 # Build the world as-is:
21 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
22 # Copy this package into the overlay:
23 - "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'"
24 - "pgt-gopath -dsc /tmp/export/*.dsc"
25 # Rebuild the world:
26 - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
27 - "ci-diff before-applying-commit.json after-applying-commit.json"