include linting in build process

This commit is contained in:
Christian Schwarz 2019-03-27 13:04:38 +01:00
parent cd829bd79a
commit 5b256a92b3
3 changed files with 4 additions and 2 deletions

View File

@ -62,6 +62,7 @@ jobs:
- run: make
- run: make vet
- run: make test
- run: make lint
- run: make release
- store_artifacts:

View File

@ -29,6 +29,7 @@ matrix:
- make
- make vet
- make test
- make lint
- make artifacts/zrepl-freebsd-amd64
- make artifacts/zrepl-linux-amd64
- make artifacts/zrepl-darwin-amd64

View File

@ -1,4 +1,4 @@
.PHONY: generate build test vet cover release docs docs-clean clean vendordeps
.PHONY: generate build test vet cover release docs docs-clean clean vendordeps format lint
.DEFAULT_GOAL := build
ARTIFACTDIR := artifacts
@ -74,7 +74,7 @@ docs-clean:
.PHONY: $(RELEASE_BINS)
# TODO: two wildcards possible
$(RELEASE_BINS): $(ARTIFACTDIR)/zrepl-%-amd64: generate $(ARTIFACTDIR) vet test
$(RELEASE_BINS): $(ARTIFACTDIR)/zrepl-%-amd64: generate $(ARTIFACTDIR) vet test lint
@echo "INFO: In case of missing dependencies, run 'make vendordeps'"
GOOS=$* GOARCH=amd64 $(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl-$*-amd64"