blob: 881d189d3f3843c5b187ae176aea992e06bb3951 [file] [log] [blame]
Philipp Schrader7365d322022-03-06 16:40:08 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_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
12go_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)