mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 17:58:04 +02:00
include linting in build process
This commit is contained in:
parent
cd829bd79a
commit
5b256a92b3
@ -62,6 +62,7 @@ jobs:
|
|||||||
- run: make
|
- run: make
|
||||||
- run: make vet
|
- run: make vet
|
||||||
- run: make test
|
- run: make test
|
||||||
|
- run: make lint
|
||||||
- run: make release
|
- run: make release
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
@ -29,6 +29,7 @@ matrix:
|
|||||||
- make
|
- make
|
||||||
- make vet
|
- make vet
|
||||||
- make test
|
- make test
|
||||||
|
- make lint
|
||||||
- make artifacts/zrepl-freebsd-amd64
|
- make artifacts/zrepl-freebsd-amd64
|
||||||
- make artifacts/zrepl-linux-amd64
|
- make artifacts/zrepl-linux-amd64
|
||||||
- make artifacts/zrepl-darwin-amd64
|
- make artifacts/zrepl-darwin-amd64
|
||||||
|
4
Makefile
4
Makefile
@ -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
|
.DEFAULT_GOAL := build
|
||||||
|
|
||||||
ARTIFACTDIR := artifacts
|
ARTIFACTDIR := artifacts
|
||||||
@ -74,7 +74,7 @@ docs-clean:
|
|||||||
|
|
||||||
.PHONY: $(RELEASE_BINS)
|
.PHONY: $(RELEASE_BINS)
|
||||||
# TODO: two wildcards possible
|
# 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'"
|
@echo "INFO: In case of missing dependencies, run 'make vendordeps'"
|
||||||
GOOS=$* GOARCH=amd64 $(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl-$*-amd64"
|
GOOS=$* GOARCH=amd64 $(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl-$*-amd64"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user