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

     1  package(default_visibility = ["//visibility:public"])
     2  
     3  load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
     4  
     5  go_binary(
     6      name = "configurator",
     7      embed = [":go_default_library"],
     8      pure = "on",
     9      tags = ["automanaged"],
    10      visibility = ["//visibility:public"],
    11  )
    12  
    13  go_test(
    14      name = "go_default_test",
    15      srcs = [
    16          "config_test.go",
    17          "yaml2proto_test.go",
    18      ],
    19      data = [
    20          "//config:prowjobs",
    21          "//prow:config.yaml",
    22          "//testgrid:config-yaml",
    23      ],
    24      embed = [":go_default_library"],
    25      deps = [
    26          "//prow/config:go_default_library",
    27          "//testgrid:config",
    28          "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
    29      ],
    30  )
    31  
    32  go_library(
    33      name = "go_default_library",
    34      srcs = [
    35          "main.go",
    36          "yaml2proto.go",
    37      ],
    38      importpath = "k8s.io/test-infra/testgrid/cmd/configurator",
    39      deps = [
    40          "//testgrid:config",
    41          "//testgrid/util/gcs:go_default_library",
    42          "//vendor/cloud.google.com/go/storage:go_default_library",
    43          "//vendor/github.com/golang/protobuf/proto:go_default_library",
    44          "//vendor/sigs.k8s.io/yaml:go_default_library",
    45      ],
    46  )
    47  
    48  filegroup(
    49      name = "package-srcs",
    50      srcs = glob(["**"]),
    51      tags = ["automanaged"],
    52      visibility = ["//visibility:private"],
    53  )
    54  
    55  filegroup(
    56      name = "all-srcs",
    57      srcs = [":package-srcs"],
    58      tags = ["automanaged"],
    59  )