Debian Codegraph @

debian/gitlab-ci.yml

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