blob: c543c17ebcdb9ff879dbd399af3f7dd7cb6f96df [file] [log] [blame]
Philipp Schrader4e661d62022-03-13 22:15:56 -07001load("//tools/build_rules:apache.bzl", "apache_wrapper")
Philipp Schraderd999c9f2022-02-27 15:48:58 -08002load("//tools/build_rules:js.bzl", "protractor_ts_test", "turn_files_into_runfiles")
Sabina Leaver12e8fa42021-12-08 20:41:05 -08003
Philipp Schrader684a8e82022-02-25 17:39:28 -08004turn_files_into_runfiles(
5 name = "main_bundle_compiled_runfiles",
6 files = "//scouting/www:main_bundle_compiled",
7)
8
9sh_binary(
10 name = "scouting",
11 srcs = [
12 "scouting.sh",
13 ],
14 data = [
15 ":main_bundle_compiled_runfiles",
16 "//scouting/webserver",
Philipp Schrader577befe2022-03-15 00:00:49 -070017 "//scouting/www:static_files",
Philipp Schrader684a8e82022-02-25 17:39:28 -080018 ],
Philipp Schrader94305722022-03-13 12:59:21 -070019 visibility = ["//visibility:public"],
Philipp Schrader684a8e82022-02-25 17:39:28 -080020)
21
Philipp Schraderd999c9f2022-02-27 15:48:58 -080022protractor_ts_test(
Philipp Schrader684a8e82022-02-25 17:39:28 -080023 name = "scouting_test",
24 srcs = [
Philipp Schraderd999c9f2022-02-27 15:48:58 -080025 ":scouting_test.ts",
Philipp Schrader684a8e82022-02-25 17:39:28 -080026 ],
Philipp Schraderd999c9f2022-02-27 15:48:58 -080027 on_prepare = ":scouting_test.protractor.on-prepare.js",
Philipp Schrader94305722022-03-13 12:59:21 -070028 server = "//scouting/testing:scouting_test_servers",
Philipp Schrader684a8e82022-02-25 17:39:28 -080029)
Philipp Schrader4e661d62022-03-13 22:15:56 -070030
31apache_wrapper(
32 name = "https",
33 binary = ":scouting",
34)