a7e95e5bc1
This allows to seamlessly build Gerrit on different operating systems. See also discussions in: [1], [2]. [1] https://github.com/bazelbuild/bazel/issues/5958 [2] https://github.com/bazelbuild/bazel/issues/10151 Change-Id: I7738a23c08f4890a2010182587b64a2979256ad4
18 lines
788 B
Plaintext
18 lines
788 B
Plaintext
build --workspace_status_command="python ./tools/workspace_status.py" --strategy=Closure=worker
|
|
build --repository_cache=~/.gerritcodereview/bazel-cache/repository
|
|
build --action_env=PATH
|
|
build --disk_cache=~/.gerritcodereview/bazel-cache/cas
|
|
build --java_toolchain //tools:error_prone_warnings_toolchain
|
|
|
|
# Enable strict_action_env flag to. For more information on this feature see
|
|
# https://groups.google.com/forum/#!topic/bazel-discuss/_VmRfMyyHBk.
|
|
# This will be the new default behavior at some point (and the flag was flipped
|
|
# shortly in 0.21.0 - https://github.com/bazelbuild/bazel/issues/7026). Remove
|
|
# this flag here once flipped in Bazel again.
|
|
build --incompatible_strict_action_env
|
|
|
|
test --build_tests_only
|
|
test --test_output=errors
|
|
|
|
import %workspace%/tools/remote-bazelrc
|