forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
42 lines (33 loc) · 1.48 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
try-import .bazelrc.local
# Set the default java toolchain
build --java_toolchain=@bazel_tools//tools/jdk:toolchain_java11
test --java_toolchain=@bazel_tools//tools/jdk:toolchain_java11
# We target java 8 by default
build --javacopt "-source 8"
build --javacopt "-target 8"
# Require java dependencies to be used and first-order
build --strict_java_deps strict
# Make sure we get something helpful when tests fail
test --verbose_failures
test --test_output=errors
# Need to be able to open sockets on localhost
test --noexperimental_sandbox_default_allow_network
# Turn on the "Managed Directories" feature.
# This allows Bazel to share the same node_modules directory with other tools
# NB: this option was introduced in Bazel 0.26
# See https://docs.bazel.build/versions/master/command-line-reference.html#flag--experimental_allow_incremental_repository_updates
common --experimental_allow_incremental_repository_updates
# pass environment variables to the test environment
test --test_env=TRAVIS
test --test_env=DISPLAY
test --test_env=MOZ_HEADLESS
test --test_env=DASHBOARD_URL
# Set up caching on local disk so incremental builds are faster
# See https://bazel.build/designs/2016/09/30/repository-cache.html
build --repository_cache=~/.cache/bazel-repo
test --repository_cache=~/.cache/bazel-repo
# See https://docs.bazel.build/versions/master/remote-caching.html#disk-cache
build --disk_cache=~/.cache/bazel-disk
test --disk_cache=~/.cache/bazel-disk
build --enable_runfiles
test --enable_runfiles