-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add lint and Bazel jobs to CircleCI (#832)
- Loading branch information
1 parent
72bfff2
commit 9fd6b3d
Showing
3 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# These options are enabled when running on CI | ||
# We do this by copying this file to /etc/bazel.bazelrc at the start of the build. | ||
|
||
# Don't be spammy in the logs | ||
build --noshow_progress | ||
|
||
# Don't run manual tests | ||
test --test_tag_filters=-manual | ||
|
||
# Prevent unstable environment variables from tainting cache keys | ||
build --experimental_strict_action_env | ||
|
||
# Workaround https://github.com/bazelbuild/bazel/issues/3645 | ||
# Bazel doesn't calculate the memory ceiling correctly when running under Docker. | ||
# Limit Bazel to consuming resources that fit in CircleCI "medium" class which is the default: | ||
# https://circleci.com/docs/2.0/configuration-reference/#resource_class | ||
build --local_resources=3072,2.0,1.0 | ||
|
||
# Retry in the event of flakes, eg. https://circleci.com/gh/angular/angular/31309 | ||
test --flaky_test_attempts=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters