forked from joe-elliott/cert-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 672 Bytes
/
Makefile
File metadata and controls
30 lines (20 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
GOPATH := $(shell go env GOPATH)
GORELEASER := $(GOPATH)/bin/goreleaser
all: build
$(GORELEASER):
go install github.com/goreleaser/goreleaser@v1.9.2
build: $(GORELEASER)
$(GORELEASER) build --skip-validate --rm-dist
test:
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
test-integration:
go test -v -tags=integration ./integration_test.go
test-all: test test-integration
release-snapshot: $(GORELEASER)
$(GORELEASER) release --snapshot --skip-publish --rm-dist
release: $(GORELEASER)
$(GORELEASER) release --rm-dist
clean:
rm -rf dist
rm -f coverage.txt
.PHONY: all build test test-integration test-all release-snapshot release clean