BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "cover.go",
  11. "dao.go",
  12. ],
  13. importpath = "go-common/app/interface/main/creative/dao/bfs",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/interface/main/creative/conf:go_default_library",
  18. "//library/ecode:go_default_library",
  19. "//library/log:go_default_library",
  20. ],
  21. )
  22. filegroup(
  23. name = "package-srcs",
  24. srcs = glob(["**"]),
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:private"],
  27. )
  28. filegroup(
  29. name = "all-srcs",
  30. srcs = [":package-srcs"],
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. )
  34. go_test(
  35. name = "go_default_test",
  36. srcs = [
  37. "cover_test.go",
  38. "dao_test.go",
  39. ],
  40. embed = [":go_default_library"],
  41. rundir = ".",
  42. tags = ["automanaged"],
  43. deps = [
  44. "//app/interface/main/creative/conf:go_default_library",
  45. "//vendor/github.com/bouk/monkey:go_default_library",
  46. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  47. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  48. ],
  49. )