BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "audit.go",
  11. "bilihub.go",
  12. "cluster.go",
  13. "dashboard.go",
  14. "devicefarm.go",
  15. "image.go",
  16. "machine.go",
  17. "machineV2.go",
  18. "machine_log.go",
  19. "mail.go",
  20. "node.go",
  21. "service.go",
  22. "task.go",
  23. "tree.go",
  24. "user.go",
  25. ],
  26. importpath = "go-common/app/admin/ep/merlin/service",
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. deps = [
  30. "//app/admin/ep/merlin/conf:go_default_library",
  31. "//app/admin/ep/merlin/dao:go_default_library",
  32. "//app/admin/ep/merlin/model:go_default_library",
  33. "//library/ecode:go_default_library",
  34. "//library/log:go_default_library",
  35. "//library/sync/pipeline/fanout:go_default_library",
  36. "//vendor/github.com/robfig/cron:go_default_library",
  37. "//vendor/github.com/satori/go.uuid:go_default_library",
  38. "//vendor/gopkg.in/gomail.v2:go_default_library",
  39. ],
  40. )
  41. filegroup(
  42. name = "package-srcs",
  43. srcs = glob(["**"]),
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:private"],
  46. )
  47. filegroup(
  48. name = "all-srcs",
  49. srcs = [":package-srcs"],
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:public"],
  52. )
  53. go_test(
  54. name = "go_default_test",
  55. srcs = [
  56. "machine_test.go",
  57. "service_test.go",
  58. "tree_test.go",
  59. "user_test.go",
  60. ],
  61. embed = [":go_default_library"],
  62. rundir = ".",
  63. tags = ["automanaged"],
  64. deps = [
  65. "//app/admin/ep/merlin/conf:go_default_library",
  66. "//app/admin/ep/merlin/model:go_default_library",
  67. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  68. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  69. ],
  70. )