forked from flyteorg/flyteidl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 800 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
#!/bin/bash
export REPOSITORY=flyteidl
include boilerplate/lyft/golang_test_targets/Makefile
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh
.PHONY: generate
generate: install # install tools, generate protos, mocks and pflags
./generate_protos.sh
./generate_mocks.sh
go generate ./...
.PHONY: test
test: install # ensures generate_protos script has been run
git diff
./generate_mocks.sh
go generate ./...
DELTA_CHECK=true ./generate_protos.sh
.PHONY: test_unit
test_unit:
# we cannot use test_unit from go.mk because generated files contain commented import statements that
# go tries to intepret. So we need to use go list to get the packages that go understands.
go test -cover `go list ./...` -race
.PHONY: build_python
build_python:
@python setup.py sdist