Use DroneCI for auto build deb package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Victor LABORIE 2019-03-01 16:12:57 +01:00
parent 00e70ff628
commit 478c61a69f
4 changed files with 44 additions and 13 deletions

40
.drone.yml Normal file
View file

@ -0,0 +1,40 @@
kind: pipeline
name: default
steps:
- name: build debian package
image: vlaborie/gbp:latest
branches:
- debian
commands:
- mk-build-deps --install --remove debian/control
- gbp buildpackage
volumes:
- name: tmp
path: /tmp
when:
branch:
- debian
- name: upload debian package
image: drillster/drone-rsync
settings:
hosts: ["pub.evolix.net"]
port: 22
user: droneci
key:
from_secret: drone_private_key
target: /home/droneci/bkctld/
source: /tmp/bkctld/
delete: true
volumes:
- name: tmp
path: /tmp
when:
branch:
- debian
volumes:
- name: tmp
host:
path: /tmp

2
debian/control vendored
View file

@ -2,7 +2,7 @@ Source: bkctld
Section: utils
Priority: optional
Maintainer: Victor Laborie <vlaborie@evolix.fr>
Build-Depends: debhelper (>= 9), dh-exec, pandoc
Build-Depends: debhelper (>= 9), dh-exec
Standards-Version: 4.0.0
Package: bkctld

5
debian/gbp.conf vendored
View file

@ -1,4 +1,5 @@
[buildpackage]
upstream-tree = master
upstream-tree = debian
debian-branch = debian
builder = sbuild -A -v -d sid
export-dir = /tmp/bkctld
builder = dpkg-buildpackage -i -I -uc -us

10
debian/rules vendored
View file

@ -1,14 +1,4 @@
#!/usr/bin/make -f
DEBIAN_VERSION := $(shell dpkg-parsechangelog| sed -n -e 's/^Version: //p')
DEBIAN_DATE := $(shell dpkg-parsechangelog| sed -n -e 's/^Date: //p')
build:
pandoc -f markdown -t man docs/usage.md --template default.man -V title=bkctld -V section=8 -V date="${DEBIAN_DATE}" -V footer="${DEBIAN_VERSION}" -V header="bkctld man page" -o docs/bkctld.8
override_dh_clean:
dh_clean
rm -f docs/bkctld.8
%:
dh $@