ci(compiler-cli): run compiler-cli tests in bazel (#22997)

PR Close #22997
This commit is contained in:
Chuck Jazdzewski
2018-03-21 14:22:06 -07:00
committed by Alex Rickabaugh
parent d9dc46e651
commit 4e004f3783
15 changed files with 618 additions and 219 deletions

View File

@ -8,12 +8,27 @@ NODE_ONLY = [
"render3/**/*.ts",
]
UTILS = [
"aot/test_util.ts",
]
ts_library(
name = "test_utils",
srcs = UTILS,
visibility = ["//packages/compiler-cli/test:__subpackages__"],
deps = [
"//packages:types",
"//packages/compiler",
"//packages/compiler-cli",
],
)
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*.ts"],
exclude = NODE_ONLY,
exclude = NODE_ONLY + UTILS,
),
deps = [
"//packages:types",
@ -31,9 +46,13 @@ ts_library(
ts_library(
name = "test_node_only_lib",
testonly = 1,
srcs = glob(NODE_ONLY),
srcs = glob(
NODE_ONLY,
exclude = UTILS,
),
deps = [
":test_lib",
":test_utils",
"//packages/compiler",
"//packages/compiler-cli",
"//packages/compiler/testing",