Philipp Schrader | 7365d32 | 2022-03-06 16:40:08 -0800 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
| 2 | |
| 3 | go_library( |
| 4 | name = "testdb_server_lib", |
| 5 | srcs = ["main.go"], |
| 6 | importpath = "github.com/frc971/971-Robot-Code/scouting/db/testdb_server", |
| 7 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 8 | visibility = ["//visibility:private"], |
| 9 | deps = ["@com_github_phst_runfiles//:go_default_library"], |
| 10 | ) |
| 11 | |
| 12 | go_binary( |
| 13 | name = "testdb_server", |
| 14 | data = [ |
| 15 | "postgres_test.conf", |
| 16 | "@postgresql_amd64//:initdb", |
| 17 | "@postgresql_amd64//:postgres", |
| 18 | ], |
| 19 | embed = [":testdb_server_lib"], |
| 20 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 21 | visibility = ["//visibility:public"], |
| 22 | ) |