1
0
Fork 0
mirror of https://github.com/Luzifer/duplicity-backup.git synced 2024-11-08 15:10:06 +00:00

Added version writing to install / gobuilder

This commit is contained in:
Knut Ahlers 2016-05-23 13:20:01 +02:00
parent 0b8f0d27c2
commit 3434057427
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 7 additions and 0 deletions

4
.gobuilder.yml Normal file
View file

@ -0,0 +1,4 @@
build_matrix:
general:
ldflags:
- "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"

View file

@ -15,3 +15,6 @@ test:
--exclude=bindata.go \ --exclude=bindata.go \
--exclude=configfile_test.go \ --exclude=configfile_test.go \
-D errcheck -D errcheck
install:
go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"