mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
build: run tests depending on webdriver-manager locally
This commit is contained in:
parent
da46bf9f5f
commit
52d7b012d3
5
.bazelrc
5
.bazelrc
@ -125,6 +125,11 @@ build:remote --bes_results_url="https://source.cloud.google.com/results/invocati
|
||||
# Set remote caching settings
|
||||
build:remote --remote_accept_cached=true
|
||||
|
||||
# Force remote executions to consider the entire run as linux.
|
||||
# This is required for OSX cross-platform RBE.
|
||||
build:remote --cpu=k8
|
||||
build:remote --host_cpu=k8
|
||||
|
||||
###############################
|
||||
# NodeJS rules settings
|
||||
# These settings are required for rules_nodejs
|
||||
|
@ -261,6 +261,8 @@ LARGE_SPECS = {
|
||||
"@npm//puppeteer",
|
||||
"@npm//ts-node",
|
||||
],
|
||||
# NB: must be run locally because webdriver manager uses an absolute path to chromedriver
|
||||
"tags": ["local"],
|
||||
},
|
||||
"dev-server": {
|
||||
"extra_deps": [
|
||||
@ -288,6 +290,10 @@ LARGE_SPECS = {
|
||||
"@npm//puppeteer",
|
||||
"@npm//ts-node",
|
||||
],
|
||||
# NB: must be run locally because webdriver manager uses an absolute path to chromedriver
|
||||
"tags": ["local"],
|
||||
# NB: multiple shards will compete for port 4200 so limiting to 1
|
||||
"shards": 1,
|
||||
},
|
||||
"tslint": {
|
||||
"extra_deps": [
|
||||
@ -363,7 +369,7 @@ LARGE_SPECS = {
|
||||
# These tests are resource intensive and should not be over-parallized as they will
|
||||
# compete for the resources of other parallel tests slowing everything down.
|
||||
# Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag.
|
||||
tags = ["cpu:2"],
|
||||
tags = ["cpu:2"] + LARGE_SPECS[spec].get("tags", []),
|
||||
templated_args = ["--nobazel_patch_module_resolver"],
|
||||
deps = [":build_angular_" + spec + "_test_lib"],
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user