Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 3 Bazel related things which will make local development smoother #411

Merged
merged 3 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ run --incompatible_strict_action_env
test --test_output=errors

# https://bazel.build/reference/command-line-reference#flag--explicit_java_test_deps
# BOTH build and test HAVE to have this - otherwise "Build option --explicit_java_test_deps has changed, discarding analysis cache."
build --explicit_java_test_deps
test --explicit_java_test_deps

# https://github.com/bazelbuild/bazel/issues/4257
# https://bazel.build/docs/user-manual#build-tests-only
test --nobuild_tests_only

# Quiet!
# common --noshow_progress
common --ui_event_filters=error,warning,info,-debug,stdout,stderr
Expand Down
8 changes: 2 additions & 6 deletions test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ if ! [ -x "$(command -v bazelisk)" ]; then
fi

# https://github.com/bazelbuild/bazel/issues/4257
# https://bazel.build/reference/command-line-reference#flag--build_tests_only
echo $ b test //...
bazelisk test --nobuild_tests_only //...
echo
echo $ b build //...
bazelisk build //...
echo $ Bazel testing...
bazelisk query //... | xargs bazel test

# Test distros: 1. End-user distributed executable fat über JAR, 2. Container Image
tools/distro/test.bash
Expand Down