Added make tasks for fmt and vet, added vet task to drone.yml

This commit is contained in:
Thomas Boerger 2016-01-01 12:57:45 +01:00
parent 1f50e69fa2
commit d25f5eeeaf
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@ build:
image: golang:1.5 image: golang:1.5
commands: commands:
- make deps - make deps
- make vet
- make build - make build
- make test - make test

View File

@ -18,6 +18,12 @@ deps:
test: test:
go test -cover ./... go test -cover ./...
fmt:
go fmt ./...
vet:
go vet ./...
build: build:
go build -ldflags '-s -w $(LDFLAGS)' go build -ldflags '-s -w $(LDFLAGS)'