2018-05-29 18:35:48 -04:00
|
|
|
# Make TypeScript and Angular compilation fast, by keeping a few copies of the
|
|
|
|
# compiler running as daemons, and cache SourceFile AST's to reduce parse time.
|
|
|
|
build --strategy=TypeScriptCompile=worker
|
|
|
|
build --strategy=AngularTemplateCompile=worker
|
|
|
|
|
|
|
|
test --test_output=errors
|
|
|
|
|
|
|
|
# Workaround https://github.com/bazelbuild/bazel/issues/3645
|
2019-01-06 07:07:24 -05:00
|
|
|
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
|
|
|
|
# Limit Bazel to consuming resources that fit in CircleCI "xlarge" class
|
|
|
|
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
|
|
|
|
build --local_resources=14336,8.0,1.0
|
2018-08-21 04:37:09 -04:00
|
|
|
|
|
|
|
# Use the Angular 6 compiler
|
2019-01-06 07:07:24 -05:00
|
|
|
build --define=compile=legacy
|
2018-12-20 15:12:51 -05:00
|
|
|
|
|
|
|
# Don't create symlinks
|
|
|
|
build --symlink_prefix=/
|
2019-05-22 20:28:42 -04:00
|
|
|
|
|
|
|
# Turn on managed directories feature in Bazel
|
|
|
|
# This allows us to avoid installing a second copy of node_modules
|
2019-06-07 12:28:41 -04:00
|
|
|
common --experimental_allow_incremental_repository_updates
|
2019-06-20 03:05:19 -04:00
|
|
|
|
|
|
|
# This option is changed to true in Bazel 0.27 and exposes a possible
|
|
|
|
# regression in Bazel 0.27.0.
|
|
|
|
# See root /.bazelrc for more info. integration/bazel uses
|
|
|
|
# ng_package which depends on npm_package so this flag needs to be set
|
|
|
|
# her as well.
|
|
|
|
build --incompatible_list_based_execution_strategy_selection=false
|
|
|
|
test --incompatible_list_based_execution_strategy_selection=false
|
|
|
|
run --incompatible_list_based_execution_strategy_selection=false
|