forked from flyteorg/flytestdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 908 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
export REPOSITORY=flytestdlib
include boilerplate/lyft/golang_test_targets/Makefile
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh
# Generate golden files. Add test packages that generate golden files here.
golden:
go test ./cli/pflags/api -update
go test ./config -update
go test ./storage -update
go test ./tests -update
generate:
@echo "************************ go generate **********************************"
go generate ./...
# This is the only target that should be overriden by the project. Get your binary into ${GOREPO}/bin
.PHONY: compile
compile:
mkdir -p ./bin
go build -o pflags ./cli/pflags/main.go && mv ./pflags ./bin
gen-config: download_tooling
@go generate ./...
.PHONY: test_unit_codecov
test_unit_codecov:
go test ./... -race -coverprofile=coverage.txt -covermode=atomic
curl -s https://codecov.io/bash > codecov_bash.sh && bash codecov_bash.sh