-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
72 lines (57 loc) · 1.74 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
all: gazelle buildifier
deps-update:
bazelisk run //:gazelle
gazelle:
bazelisk run //:gazelle
test: gazelle buildifier e2e
bazelisk build //... && bazelisk test //...
buildifier:
bazelisk run //:buildifier.check
gofmt:
gofmt -w pkg/.. cmd/..
e2e-workspace:
@for version in 5.x 6.x 7.x; do \
( \
cd e2e/bazel-workspace && \
echo "Testing $$version" > /dev/stderr && \
USE_BAZEL_VERSION=$$version bazelisk --batch build //...\
) \
done
e2e-bzlmod:
@for version in 6.x 7.x; do \
( \
cd e2e/bazel-bzlmod && \
echo "Testing $$version with bzlmod" > /dev/stderr && \
USE_BAZEL_VERSION=$$version bazelisk --batch build //...\
) \
done
e2e-bzlmod-non-legacy-mode:
@for version in 6.x 7.x; do \
( \
cd e2e/bazel-bzlmod-non-legacy-mode && \
echo "Testing $$version with bzlmod with non-legacy mode" > /dev/stderr && \
USE_BAZEL_VERSION=$$version bazelisk --batch build //...\
) \
done
e2e-bazel-bzlmod-lock-file:
@for version in 6.x 7.x; do \
( \
cd e2e/bazel-bzlmod-lock-file && \
echo "Testing $$version with bzlmod with lock file" > /dev/stderr && \
USE_BAZEL_VERSION=$$version bazelisk --batch build //...\
) \
done
e2e-bzlmod-build-toolchain-6.x:
( \
cd e2e/bazel-bzlmod-toolchain-from-source && \
USE_BAZEL_VERSION=6.x bazelisk --batch build //... \
)
e2e-bzlmod-build-toolchain-7.x:
( \
cd e2e/bazel-bzlmod-toolchain-from-source && \
USE_BAZEL_VERSION=7.x bazelisk --batch build //... --incompatible_enable_proto_toolchain_resolution \
)
e2e-bzlmod-build-toolchain: e2e-bzlmod-build-toolchain-6.x e2e-bzlmod-build-toolchain-7.x
e2e: e2e-workspace e2e-bzlmod e2e-bzlmod-build-toolchain e2e-bzlmod-non-legacy-mode
fmt: gofmt buildifier
.PHONY: gazelle test deps-update buildifier gofmt fmt e2e