forked from kopeio/etcd-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (39 loc) · 1015 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: all
all: test
.PHONY: test
test:
bazel test //test/... --test_output=streamed
.PHONY: stress-test
stress-test:
bazel test //test/... --test_output=streamed --runs_per_test=10
.PHONY: gofmt
gofmt:
gofmt -w -s cmd/ pkg/
.PHONY: goimports
goimports:
goimports -w cmd/ pkg/ test/
.PHONY: push-etcd-manager
push-etcd-manager:
bazel run //images:push-etcd-manager
.PHONY: push-etcd-dump
push-etcd-dump:
bazel run //images:push-etcd-dump
.PHONY: push-etcd-backup
push-etcd-backup:
bazel run //images:push-etcd-backup
.PHONY: push
push: push-etcd-manager push-etcd-dump push-etcd-backup
echo "pushed images"
.PHONY: gazelle
gazelle:
bazel run //:gazelle
git checkout -- vendor
rm -f vendor/github.com/coreos/etcd/cmd/etcd
#rm vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/BUILD.bazel
.PHONY: dep-ensure
dep-ensure:
dep ensure -v
find vendor/ -name "BUILD" -delete
find vendor/ -name "BUILD.bazel" -delete
bazel run //:gazelle
rm -f vendor/github.com/coreos/etcd/cmd/etcd