BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "comment.go",
  11. "contributors.go",
  12. "mr.go",
  13. "pipeline.go",
  14. "service.go",
  15. "wechat.go",
  16. ],
  17. importpath = "go-common/app/tool/saga/service",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/tool/saga/conf:go_default_library",
  22. "//app/tool/saga/dao:go_default_library",
  23. "//app/tool/saga/model:go_default_library",
  24. "//app/tool/saga/service/command:go_default_library",
  25. "//app/tool/saga/service/gitlab:go_default_library",
  26. "//app/tool/saga/service/mail:go_default_library",
  27. "//app/tool/saga/service/notification:go_default_library",
  28. "//app/tool/saga/service/wechat:go_default_library",
  29. "//library/log:go_default_library",
  30. "//vendor/github.com/pkg/errors:go_default_library",
  31. "//vendor/github.com/robfig/cron:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [
  43. ":package-srcs",
  44. "//app/tool/saga/service/command:all-srcs",
  45. "//app/tool/saga/service/gitlab:all-srcs",
  46. "//app/tool/saga/service/mail:all-srcs",
  47. "//app/tool/saga/service/notification:all-srcs",
  48. "//app/tool/saga/service/wechat:all-srcs",
  49. ],
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:public"],
  52. )
  53. go_test(
  54. name = "go_default_test",
  55. srcs = [
  56. "comment_test.go",
  57. "contributors_test.go",
  58. "service_test.go",
  59. ],
  60. embed = [":go_default_library"],
  61. rundir = ".",
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/tool/saga/conf:go_default_library",
  65. "//app/tool/saga/model:go_default_library",
  66. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  67. ],
  68. )