aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release/BUILD
blob: d14dd24c970468a190e6e349d2c12523132c578b (plain)
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
# Scripts for building Bazel releases
package(default_visibility = ["//visibility:private"])

filegroup(
    name = "srcs",
    srcs = glob(["**"]),
    visibility = ["//scripts:__pkg__"],
)

sh_library(
    name = "relnotes",
    srcs = [
        "common.sh",
        "relnotes.sh",
    ],
)

sh_test(
    name = "relnotes_test",
    srcs = ["relnotes_test.sh"],
    data = [
        "testenv.sh",
        "//:git",
        "//src/test/shell:bashunit",
    ],
    shard_count = 2,
    tags = ["need_git"],
    deps = [
        ":relnotes",
    ],
)

sh_library(
    name = "release",
    srcs = [
        "release.sh",
    ],
    deps = [":relnotes"],
)

sh_test(
    name = "release_test",
    srcs = ["release_test.sh"],
    data = [
        "testenv.sh",
        "//:git",
        "//src/test/shell:bashunit",
    ],
    shard_count = 2,
    tags = ["need_git"],
    deps = [":release"],
)