Commit ef542bfe authored by ale's avatar ale

Update Debian metadata and switch to default CI workflow

Requires Go from stretch-backports.
parent 8100efc2
Pipeline #2541 passed with stages
in 1 minute and 57 seconds
stages:
- test
- build_src
- build_pkg
- upload
test:
stage: test
image: "ai/test:go"
script: "go-test-runner . ./server"
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"
......@@ -2,7 +2,7 @@ Source: auth-server
Section: net
Priority: extra
Maintainer: Autistici/Inventati <debian@autistici.org>
Build-Depends: debhelper (>= 8.0.0), golang-go, dh-golang, dh-systemd
Build-Depends: debhelper (>= 8.0.0), golang-any (>= 1.11), dh-golang, dh-systemd
Standards-Version: 3.9.4
Package: auth-server
......
......@@ -10,9 +10,7 @@ export DH_GOLANG_EXCLUDES = vendor
%:
dh $@ --with golang --with systemd --buildsystem golang
override_dh_auto_test:
override_dh_install:
rm -fr $(CURDIR)/debian/auth-server/usr/share/gocode
dh_install
override_dh_auto_install:
dh_auto_install
$(RM) -rv debian/auth-server/usr/share/gocode
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment