github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/ghclient/BUILD (about)

     1  package(default_visibility = ["//visibility:public"])
     2  
     3  load(
     4      "@io_bazel_rules_go//go:def.bzl",
     5      "go_library",
     6      "go_test",
     7  )
     8  
     9  go_test(
    10      name = "go_default_test",
    11      srcs = [
    12          "core_test.go",
    13          "wrappers_test.go",
    14      ],
    15      library = ":go_default_library",
    16      tags = ["automanaged"],
    17      deps = ["//vendor/github.com/google/go-github/github:go_default_library"],
    18  )
    19  
    20  go_library(
    21      name = "go_default_library",
    22      srcs = [
    23          "core.go",
    24          "wrappers.go",
    25      ],
    26      tags = ["automanaged"],
    27      deps = [
    28          "//vendor/github.com/golang/glog:go_default_library",
    29          "//vendor/github.com/google/go-github/github:go_default_library",
    30          "//vendor/golang.org/x/oauth2:go_default_library",
    31      ],
    32  )
    33  
    34  filegroup(
    35      name = "package-srcs",
    36      srcs = glob(["**"]),
    37      tags = ["automanaged"],
    38      visibility = ["//visibility:private"],
    39  )
    40  
    41  filegroup(
    42      name = "all-srcs",
    43      srcs = [":package-srcs"],
    44      tags = ["automanaged"],
    45  )