github.com/abayer/test-infra@v0.0.5/velodrome/transform/BUILD.bazel (about)

     1  package(default_visibility = ["//visibility:public"])
     2  
     3  load(
     4      "@io_bazel_rules_go//go:def.bzl",
     5      "go_binary",
     6      "go_library",
     7      "go_test",
     8  )
     9  
    10  go_binary(
    11      name = "transform",
    12      embed = [":go_default_library"],
    13      pure = "on",
    14  )
    15  
    16  go_test(
    17      name = "go_default_test",
    18      srcs = [
    19          "fetcher_test.go",
    20          "influx_test.go",
    21      ],
    22      embed = [":go_default_library"],
    23      deps = [
    24          "//velodrome/sql:go_default_library",
    25          "//velodrome/sql/testing:go_default_library",
    26      ],
    27  )
    28  
    29  go_library(
    30      name = "go_default_library",
    31      srcs = [
    32          "fetcher.go",
    33          "influx.go",
    34          "transform.go",
    35      ],
    36      importpath = "k8s.io/test-infra/velodrome/transform",
    37      deps = [
    38          "//velodrome/sql:go_default_library",
    39          "//velodrome/transform/plugins:go_default_library",
    40          "//vendor/github.com/golang/glog:go_default_library",
    41          "//vendor/github.com/influxdata/influxdb/client/v2:go_default_library",
    42          "//vendor/github.com/jinzhu/gorm:go_default_library",
    43          "//vendor/github.com/jinzhu/gorm/dialects/mysql:go_default_library",
    44          "//vendor/github.com/spf13/cobra:go_default_library",
    45      ],
    46  )
    47  
    48  filegroup(
    49      name = "configs",
    50      srcs = glob(["*.yaml"]),
    51  )
    52  
    53  filegroup(
    54      name = "package-srcs",
    55      srcs = glob(["**"]),
    56      tags = ["automanaged"],
    57      visibility = ["//visibility:private"],
    58  )
    59  
    60  filegroup(
    61      name = "all-srcs",
    62      srcs = [
    63          ":package-srcs",
    64          "//velodrome/transform/plugins:all-srcs",
    65      ],
    66      tags = ["automanaged"],
    67  )