-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 933 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pkgs = $(shell go list ./... | grep -v vendor)
all: presubmit build test
generate:
@echo ">> generating code"
@go generate $(pkgs)
format:
@echo ">> formatting code"
@go fmt $(pkgs)
vet:
@echo ">> vetting code"
@go vet $(pkgs)
presubmit: vet
@echo ">> checking go formatting"
@./build/check_gofmt.sh
assets:
@echo ">> building assets"
@./build/assets.sh
build: assets
@echo ">> building binaries"
@./build/build.sh
test:
@echo ">> running tests"
@go test -short -race $(pkgs)
test-long: build
@echo ">> running tests long"
@go test -race $(pkgs)
release:
@echo ">> building release binaries"
@./build/release.sh $(VERSION)
docker:
@echo ">> building docker image"
@docker build -t wfe:$(shell git rev-parse --short HEAD) -f deploy/Dockerfile .
clean:
@echo ">> removing compiled files"
@go clean -i $(pkgs)
.PHONY: all generate format vet presubmit assets build test test-long release docker clean