-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (25 loc) · 894 Bytes
/
justfile
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
default:
@just --choose
all: build
lint: ## Lint the files
@golint -set_exit_status env_var("PKG_LIST")
test: ## Run unittests
@go test -short env_var("PKG_LIST")
race: dep ## Run data race detector
@go test -race -short env_var("PKG_LIST")
msan: dep ## Run memory sanitizer
@go test -msan -short env_var("PKG_LIST")
coverage: ## Generate global code coverage report
./tools/coverage.sh;
coverhtml: ## Generate global code coverage report in HTML
./tools/coverage.sh html;
dep: ## Get the dependencies
@go mod download
build: dep ## Build the binary file
@env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/webhookd cmd/webhookd/main.go
build-win: dep ## Build the binary file
@env CGO_ENABLED=0 GOARCH=386 GOOS=windows go build -o build/webhookd.exe cmd/webhookd/main.go
run *ARGS: build
@build/webhookd {{ARGS}}
clean: ## Remove previous build
@rm -f build/*