forked from flyteorg/flytestdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 883 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 883 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
export REPOSITORY=flytestdlib
include boilerplate/lyft/golang_test_targets/Makefile
# 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:
which pflags || (go get github.com/lyft/flytestdlib/cli/pflags)
@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