build: bazel integration test using limited resources (#27937)

PR Close #27937
This commit is contained in:
Paul Gschwendtner 2019-01-06 13:07:24 +01:00 committed by Kara Erickson
parent 4fc41517d1
commit b47c43af45
1 changed files with 5 additions and 3 deletions

View File

@ -6,8 +6,10 @@ build --strategy=AngularTemplateCompile=worker
test --test_output=errors
# Workaround https://github.com/bazelbuild/bazel/issues/3645
# Limit Bazel to consuming 3072K of RAM
build --local_resources=3072,2.0,1.0
# 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
# Use the Angular 6 compiler
build --define=compile=legacy