-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (27 loc) · 777 Bytes
/
makefile
File metadata and controls
32 lines (27 loc) · 777 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
31
32
.PHONY: setup
setup: gen-certs
docker compose up -d --force-recreate --remove-orphans
.PHONY: check
check:
ifeq ($(OS),Windows_NT)
go test ./... -short
else
@wget -O lint-project.sh https://raw.githubusercontent.com/moov-io/infra/master/go/lint-project.sh
@chmod +x ./lint-project.sh
GOCYCLO_LIMIT=26 COVER_THRESHOLD=50.0 GOLANGCI_LINTERS=gosec GITLEAKS_EXCLUDE=testcerts ./lint-project.sh
endif
.PHONY: clean
clean:
@rm -rf ./bin/ ./tmp/ coverage.txt misspell* staticcheck lint-project.sh
.PHONY: cover-test cover-web
cover-test:
go test -coverprofile=cover.out ./...
cover-web:
go tool cover -html=cover.out
.PHONY: teardown
teardown:
-docker compose down --remove-orphans
-docker compose rm -f -v
.PHONY: gen-certs
gen-certs:
./database/testdata/gencerts.sh