diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..97b31a356253cc404e1e821eb4505ee92ebb3ffc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,47 @@ + +stages: + - test + - build_src + - build_pkg + - upload + +# Do not run tests on master, they are executed by the +# Debian package builder. +test: + stage: test + image: "ai/test:go" + script: "go-test-runner ." + except: + - master + +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 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..ae077bc0e5959bbf19dac49a31a125b3e03c70fc --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tabacco (0.1) unstable; urgency=medium + + * First release. + + -- ale Mon, 06 Aug 2018 19:08:16 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000000000000000000000000000000000..f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..e5d9e715f2fde18b352f1c332dca6d8b00599d60 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: tabacco +Section: admin +Priority: extra +Maintainer: ale +Uploaders: ale +Build-Depends: debhelper (>= 9), + dh-golang, + golang-go +Standards-Version: 3.9.6 +XS-Go-Import-Path: git.autistici.org/ale/tabacco + +Package: tabacco +Architecture: any +Built-Using: ${misc:Built-Using} +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: Backup manager for distributed systems. + Backup manager for distributed systems, with a specific + focus on multi-tenant (partitioned) services. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..e11a69bfc3ff6f971c08f1673b2328dc4f4e739c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: tabacco +Source: https://git.autistici.org/ale/tabacco + +Files: * +Copyright: 2018 +License: GPL3 + +Files: debian/* +Copyright: 2018 ale +License: GPL3 +Comment: Debian packaging is licensed under the same terms as upstream + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..344c62374d84454f7164b2319f6166aa9b574da7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DH_GOPKG = git.autistici.org/ale/tabacco +export DH_GOLANG_EXCLUDES = vendor +export DH_GOLANG_INSTALL_ALL = 1 + +%: + dh $@ --buildsystem=golang --with=golang + +override_dh_install: + rm -fr $(CURDIR)/debian/tmp/usr/share/gocode + dh_install + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..89ae9db8f88b823b6a7eabf55e203658739da122 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)