@@ -427,30 +427,10 @@ func writeDebianUpstreamMetadata(dir, gopkg string) error {
427
427
func writeDebianGitLabCI (dir string ) error {
428
428
const gitlabciymlTmpl = `# auto-generated, DO NOT MODIFY.
429
429
# The authoritative copy of this file lives at:
430
- # https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
431
-
432
- image: stapelberg/ci2
433
-
434
- test_the_archive:
435
- artifacts:
436
- paths:
437
- - before-applying-commit.json
438
- - after-applying-commit.json
439
- script:
440
- # Create an overlay to discard writes to /srv/gopath/src after the build:
441
- - "rm -rf /cache/overlay/{upper,work}"
442
- - "mkdir -p /cache/overlay/{upper,work}"
443
- - "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
444
- - "export GOPATH=/srv/gopath"
445
- - "export GOCACHE=/cache/go"
446
- # Build the world as-is:
447
- - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
448
- # Copy this package into the overlay:
449
- - "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'"
450
- - "pgt-gopath -dsc /tmp/export/*.dsc"
451
- # Rebuild the world:
452
- - "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
453
- - "ci-diff before-applying-commit.json after-applying-commit.json"
430
+ # https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
431
+ ---
432
+ include:
433
+ - https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml
454
434
`
455
435
456
436
f , err := os .Create (filepath .Join (dir , "debian" , "gitlab-ci.yml" ))
0 commit comments