BUILD 1.6 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. "command.go",
  11. "contributors.go",
  12. "merge.go",
  13. "review.go",
  14. ],
  15. importpath = "go-common/app/tool/saga/service/command",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/tool/saga/conf:go_default_library",
  20. "//app/tool/saga/dao:go_default_library",
  21. "//app/tool/saga/model:go_default_library",
  22. "//app/tool/saga/service/gitlab:go_default_library",
  23. "//app/tool/saga/service/notification:go_default_library",
  24. "//library/log:go_default_library",
  25. "//vendor/github.com/xanzy/go-gitlab:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = [
  43. "command_test.go",
  44. "contributors_test.go",
  45. "review_test.go",
  46. ],
  47. embed = [":go_default_library"],
  48. rundir = ".",
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/tool/saga/conf:go_default_library",
  52. "//app/tool/saga/dao:go_default_library",
  53. "//app/tool/saga/model:go_default_library",
  54. "//app/tool/saga/service/gitlab:go_default_library",
  55. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  56. ],
  57. )