| 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/config/gitlabciyml.go |
| 4 |
|
| 5 |
image: stapelberg/ci2 |
| 6 |
|
| 7 |
test_the_archive: |
| 8 |
artifacts: |
| 9 |
paths: |
| 10 |
- before-applying-commit.json |
| 11 |
- after-applying-commit.json |
| 12 |
script: |
| 13 |
# Create an overlay to discard writes to /srv/gopath/src after the build: |
| 14 |
- "rm -rf /cache/overlay/{upper,work}" |
| 15 |
- "mkdir -p /cache/overlay/{upper,work}" |
| 16 |
- "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src" |
| 17 |
- "export GOPATH=/srv/gopath" |
| 18 |
- "export GOCACHE=/cache/go" |
| 19 |
# Build the world as-is: |
| 20 |
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json" |
| 21 |
# Copy this package into the overlay: |
| 22 |
- "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'" |
| 23 |
- "pgt-gopath -dsc /tmp/export/*.dsc" |
| 24 |
# Rebuild the world: |
| 25 |
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json" |
| 26 |
- "ci-diff before-applying-commit.json after-applying-commit.json" |