Updated Dron
the build failed Details

This commit is contained in:
konrad 2017-11-07 16:29:41 +01:00 committed by kolaente
parent f47cf69900
commit 6a67e6cc4b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,8 @@ pipeline:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- make clean
- make lint
- make fmt-check
- make build
when:

View File

@ -55,6 +55,13 @@ clean:
required-gofmt-version:
@go version | grep -q '\(1.7\|1.8\)' || { echo "We require go version 1.7 or 1.8 to format code" >&2 && exit 1; }
.PHONY: lint
lint:
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u github.com/golang/lint/golint; \
fi
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
.PHONY: fmt
fmt: required-gofmt-version
$(GOFMT) -w $(GOFILES)