BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "cache.go",
  11. "dao.go",
  12. "mc.cache.go",
  13. "push.go",
  14. "wechat.go",
  15. ],
  16. importpath = "go-common/app/job/main/activity/dao/bnj",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/job/main/activity/conf:go_default_library",
  21. "//library/cache/memcache:go_default_library",
  22. "//library/ecode:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/net/http/blademaster:go_default_library",
  25. "//library/stat/prom:go_default_library",
  26. "//library/xstr:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )
  41. go_test(
  42. name = "go_default_test",
  43. srcs = [
  44. "cache_test.go",
  45. "dao_test.go",
  46. "mc.cache_test.go",
  47. "push_test.go",
  48. "wechat_test.go",
  49. ],
  50. embed = [":go_default_library"],
  51. tags = ["automanaged"],
  52. deps = [
  53. "//app/job/main/activity/conf:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  56. ],
  57. )