diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1f481ba8549a9a0365105ba07eba3e9ab05fd3d..f9d46324531b0902876338b1107955fcb66d43fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,37 +1 @@ - -stages: - - build_src - - build_pkg - - upload - -build:src: - stage: build_src - image: "ai/build:stretch" - script: "build-dsc" - artifacts: - paths: - - build-deb/ - only: - - master - -build:pkg: - stage: build_pkg - image: "ai/build:stretch" - script: "build-deb" - dependencies: - - build:src - artifacts: - paths: - - output-deb/ - only: - - master - -upload:pkg: - stage: upload - image: "ai/pkg:base" - script: "upload-packages -r ai3" - dependencies: - - build:pkg - only: - - master - +include: "https://git.autistici.org/ai3/build-deb/raw/master/ci-common.yml" diff --git a/debian/control b/debian/control index 22160a54f116460fa62d9e07b9ec0f0a7ac7b535..00732e0a9c2d7d8e3ec32df64766e505fea29627 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: acmeserver Section: admin Priority: optional Maintainer: Autistici/Inventati <debian@autistici.org> -Build-Depends: debhelper (>=9), golang-go, dh-systemd, dh-golang +Build-Depends: debhelper (>=9), golang-any (>=1.11), dh-systemd, dh-golang Standards-Version: 3.9.6 Package: acmeserver diff --git a/debian/rules b/debian/rules index f0ecee87f6b1e6104872261ec660b391bbc5a25d..27dc78b9effeb51cc6c52611de51aa97f0897f12 100755 --- a/debian/rules +++ b/debian/rules @@ -7,9 +7,9 @@ export DH_GOLANG_EXCLUDES = vendor %: dh $@ --with systemd --with golang --buildsystem golang -override_dh_install: - rm -fr $(CURDIR)/debian/acmeserver/usr/share/gocode - dh_install +override_dh_auto_install: + dh_auto_install + $(RM) -rv debian/acmeserver/usr/share/gocode override_dh_systemd_enable: dh_systemd_enable --no-enable