ci: parallelize bazel build and test

The current setup can cause a de-optimization where unit tests can't start running until the slowest build target completes.
This commit is contained in:
Alex Eagle 2017-12-13 09:18:16 -08:00 committed by Alex Rickabaugh
parent 6e2a8a2ba4
commit 6d57cb04f6
2 changed files with 9 additions and 2 deletions

View File

@ -52,10 +52,14 @@ jobs:
<<: *post_checkout
- restore_cache:
key: *cache_key
- run: bazel info release
- run: bazel run @yarn//:yarn
- run: bazel build --config=ci packages/...
- run: bazel test --config=ci packages/... @angular//...
# Use bazel query so that we explicitly ask for all buildable targets to be built as well
# This avoids waiting for a build command to finish before running the first test
# See https://github.com/bazelbuild/bazel/issues/4257
- run: bazel query --output=label '//packages/... union @angular//...' | xargs bazel test --config=ci
- save_cache:
key: *cache_key
paths:

View File

@ -47,3 +47,6 @@ test --experimental_ui
# Don't be spammy in the continuous integration logs
build:ci --noshow_progress
# Don't run manual tests on CI
test:ci --test_tag_filters=-manual