forked from flyteorg/flyteadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 1.27 KB
/
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
export GO111MODULE=off
export REPOSITORY=flyteadmin
include boilerplate/lyft/docker_build/Makefile
include boilerplate/lyft/golang_test_targets/Makefile
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh
.PHONY: integration
integration:
GOFLAGS="-count=1" go test -v -tags=integration ./tests/...
.PHONY: k8s_integration
k8s_integration:
@script/integration/launch.sh
.PHONY: compile
compile:
go build -o flyteadmin ./cmd/ && mv ./flyteadmin ${GOPATH}/bin
.PHONY: linux_compile
linux_compile:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /artifacts/flyteadmin ./cmd/
.PHONY: server
server:
go run cmd/main.go --logtostderr --server.kube-config ~/.kube/config --config flyteadmin_config.yaml serve
.PHONY: migrate
migrate:
go run cmd/main.go --logtostderr --server.kube-config ~/.kube/config --config flyteadmin_config.yaml migrate run
.PHONY: seed_projects
seed_projects:
go run cmd/main.go --logtostderr --server.kube-config ~/.kube/config --config flyteadmin_config.yaml migrate seed-projects project admintests flytekit
all: compile
generate:
which pflags || (go get github.com/lyft/flytestdlib/cli/pflags)
which mockery || (go get github.com/enghabu/mockery/cmd/mockery)
which enumer || (go get github.com/alvaroloes/enumer)
@go generate ./...