BUILD 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. "bilihub.go",
  11. "dao.go",
  12. "dashboard.go",
  13. "devicefarm.go",
  14. "docker.go",
  15. "mail.go",
  16. "mysql_application_record.go",
  17. "mysql_dashboard.go",
  18. "mysql_hubimage_confs.go",
  19. "mysql_hubimage_logs.go",
  20. "mysql_image.go",
  21. "mysql_machine.go",
  22. "mysql_machineV2.go",
  23. "mysql_machine_log.go",
  24. "mysql_machine_node.go",
  25. "mysql_machine_package.go",
  26. "mysql_mail_log.go",
  27. "mysql_mobile_machine.go",
  28. "mysql_mobile_machine_error_log.go",
  29. "mysql_mobile_machine_log.go",
  30. "mysql_mobile_sync_log.go",
  31. "mysql_snapshot_record.go",
  32. "mysql_task.go",
  33. "mysql_user.go",
  34. "paas.go",
  35. "tree.go",
  36. "wechat.go",
  37. ],
  38. importpath = "go-common/app/admin/ep/merlin/dao",
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. deps = [
  42. "//app/admin/ep/merlin/conf:go_default_library",
  43. "//app/admin/ep/merlin/model:go_default_library",
  44. "//library/cache/memcache:go_default_library",
  45. "//library/database/orm:go_default_library",
  46. "//library/ecode:go_default_library",
  47. "//library/log:go_default_library",
  48. "//library/net/http/blademaster:go_default_library",
  49. "//library/sync/pipeline/fanout:go_default_library",
  50. "//vendor/github.com/docker/docker/api/types:go_default_library",
  51. "//vendor/github.com/docker/docker/api/types/filters:go_default_library",
  52. "//vendor/github.com/docker/docker/client:go_default_library",
  53. "//vendor/github.com/jinzhu/gorm:go_default_library",
  54. "//vendor/github.com/pkg/errors:go_default_library",
  55. "//vendor/gopkg.in/gomail.v2:go_default_library",
  56. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )
  71. go_test(
  72. name = "go_default_test",
  73. srcs = [
  74. "dao_test.go",
  75. "mail_test.go",
  76. "mysql_image_test.go",
  77. "mysql_machine_log_test.go",
  78. "mysql_machine_test.go",
  79. "mysql_mail_log_test.go",
  80. "mysql_task_test.go",
  81. "mysql_user_test.go",
  82. "paas_test.go",
  83. "tree_test.go",
  84. ],
  85. embed = [":go_default_library"],
  86. rundir = ".",
  87. tags = ["automanaged"],
  88. deps = [
  89. "//app/admin/ep/merlin/conf:go_default_library",
  90. "//app/admin/ep/merlin/model:go_default_library",
  91. "//library/log:go_default_library",
  92. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  93. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  94. "//vendor/gopkg.in/gomail.v2:go_default_library",
  95. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  96. ],
  97. )