mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6948f0f0f3
Don't run the script under Bazel, except for the tests. Configure a Bazel flag to select the AIO build configuration. PR Close #48188
24 lines
593 B
Python
24 lines
593 B
Python
load("@aio_npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
|
load("@aio_npm//@angular/build-tooling/bazel/remote-execution:index.bzl", "ENABLE_NETWORK")
|
|
|
|
DEPLOY_TO_FIREBASE_SOURCES = glob(
|
|
["**/*.mjs"],
|
|
["**/*.spec.mjs"],
|
|
)
|
|
|
|
DEPLOY_TO_FIREBASE_DEPS = [
|
|
"@aio_npm//shelljs",
|
|
"//aio:build",
|
|
"//:package.json",
|
|
]
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
srcs = glob(["**/*.spec.mjs"]),
|
|
data = DEPLOY_TO_FIREBASE_SOURCES,
|
|
# Tests make remote calls to git
|
|
exec_properties = ENABLE_NETWORK,
|
|
tags = ["requires-network"],
|
|
deps = DEPLOY_TO_FIREBASE_DEPS,
|
|
)
|