BUILD.bazel 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. "mail.go",
  10. "tpl.go",
  11. ],
  12. importpath = "go-common/app/admin/ep/saga/service/mail",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/admin/ep/saga/conf:go_default_library",
  17. "//app/admin/ep/saga/model:go_default_library",
  18. "//library/log:go_default_library",
  19. "//vendor/github.com/pkg/errors:go_default_library",
  20. "//vendor/gopkg.in/gomail.v2:go_default_library",
  21. ],
  22. )
  23. go_test(
  24. name = "go_default_test",
  25. srcs = ["mail_test.go"],
  26. embed = [":go_default_library"],
  27. rundir = ".",
  28. tags = ["automanaged"],
  29. deps = [
  30. "//app/admin/ep/saga/conf:go_default_library",
  31. "//app/admin/ep/saga/model:go_default_library",
  32. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )