2016-05-22 13:04:37 +00:00
|
|
|
bindata:
|
|
|
|
go-bindata help.txt
|
|
|
|
|
2018-10-08 13:16:12 +00:00
|
|
|
ci: publish
|
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2016-10-28 12:54:35 +00:00
|
|
|
|
2016-05-22 13:04:37 +00:00
|
|
|
setup-testenv:
|
|
|
|
go get github.com/onsi/ginkgo/ginkgo
|
|
|
|
go get github.com/onsi/gomega
|
2016-05-22 14:05:06 +00:00
|
|
|
go get github.com/alecthomas/gometalinter
|
|
|
|
gometalinter --install --update
|
2016-05-22 13:04:37 +00:00
|
|
|
|
|
|
|
test:
|
2016-05-22 14:05:06 +00:00
|
|
|
ginkgo
|
|
|
|
gometalinter \
|
|
|
|
--cyclo-over=15 \
|
2016-05-22 14:11:57 +00:00
|
|
|
--deadline=20s \
|
2016-05-22 14:05:06 +00:00
|
|
|
--exclude=bindata.go \
|
|
|
|
--exclude=configfile_test.go \
|
|
|
|
-D errcheck
|
2016-05-23 11:20:01 +00:00
|
|
|
|
|
|
|
install:
|
2016-05-23 14:04:50 +00:00
|
|
|
go install -a -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|