BUILD.bazel 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "gitlab.go",
  10. "gitlab_comment.go",
  11. "gitlab_mr.go",
  12. "gitlab_pipeline.go",
  13. "gitlab_push.go",
  14. "mail.go",
  15. "model.go",
  16. "wechat.go",
  17. ],
  18. importpath = "go-common/app/tool/saga/model",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. )
  22. go_test(
  23. name = "go_default_test",
  24. srcs = ["model_test.go"],
  25. embed = [":go_default_library"],
  26. rundir = ".",
  27. tags = ["automanaged"],
  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. )