github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/testgrid/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
     2  
     3  proto_library(
     4      name = "state_proto",
     5      srcs = ["state.proto"],
     6  )
     7  
     8  proto_library(
     9      name = "config_proto",
    10      srcs = ["config.proto"],
    11  )
    12  
    13  go_proto_library(
    14      name = "state",
    15      importpath = "k8s.io/test-infra/testgrid/state",
    16      proto = ":state_proto",
    17      visibility = ["//visibility:public"],
    18  )
    19  
    20  go_proto_library(
    21      name = "config",
    22      importpath = "k8s.io/test-infra/testgrid/config",
    23      proto = ":config_proto",
    24      visibility = ["//visibility:public"],
    25  )
    26  
    27  filegroup(
    28      name = "config-yaml",
    29      srcs = ["config.yaml"],
    30      visibility = ["//visibility:public"],
    31  )
    32  
    33  filegroup(
    34      name = "package-srcs",
    35      srcs = glob(["**"]),
    36      tags = ["automanaged"],
    37      visibility = ["//visibility:private"],
    38  )
    39  
    40  filegroup(
    41      name = "all-srcs",
    42      srcs = [
    43          ":package-srcs",
    44          "//testgrid/cluster:all-srcs",
    45          "//testgrid/cmd/configurator:all-srcs",
    46          "//testgrid/cmd/updater:all-srcs",
    47          "//testgrid/images:all-srcs",
    48          "//testgrid/util/gcs:all-srcs",
    49      ],
    50      tags = ["automanaged"],
    51      visibility = ["//visibility:public"],
    52  )