diff --git a/.bazelrc b/.bazelrc index cb9dfc1..866f201 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1 +1,5 @@ +import %workspace%/.settings/bazelrc/debug.bazelrc + +common --noenable_bzlmod + build --javacopt="--release 8" diff --git a/.bazelversion b/.bazelversion index 74ecad8..468c41f 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -4.2.4 \ No newline at end of file +7.2.1 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba70e93..a3f73e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: - name: Run tests run: | - bazelisk test --jobs 2 --test_output=errors //... + bazelisk test --config=debug --jobs 2 --test_output=errors //... - name: Shutdown Bazel run: bazelisk shutdown diff --git a/.gitignore b/.gitignore index 525ed74..f1adb46 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ bazel-* bazel-*/ .classpath .project -.settings/ /bin/ diff --git a/.settings/bazelrc/debug.bazelrc b/.settings/bazelrc/debug.bazelrc new file mode 100644 index 0000000..bfb0bdd --- /dev/null +++ b/.settings/bazelrc/debug.bazelrc @@ -0,0 +1,19 @@ +############################################################ +# Use `bazel test --config=debug` to enable these settings # +############################################################ + +# Stream stdout/stderr output from each test in real-time. +# Docs: https://bazel.build/docs/user-manual#test-output +test:debug --test_output=streamed + +# Run one test at a time. +# Docs: https://bazel.build/reference/command-line-reference#flag--test_strategy +test:debug --test_strategy=exclusive + +# Prevent long running tests from timing out. +# Docs: https://bazel.build/docs/user-manual#test-timeout +test:debug --test_timeout=9999 + +# Always run tests even if they have cached results. +# Docs: https://bazel.build/docs/user-manual#cache-test-results +test:debug --nocache_test_results diff --git a/examples/.bazelrc b/examples/.bazelrc index 0d5e52c..7164c0b 100644 --- a/examples/.bazelrc +++ b/examples/.bazelrc @@ -1 +1 @@ -build --incompatible_use_platforms_repo_for_constraints +common --noenable_bzlmod \ No newline at end of file diff --git a/examples/.bazelversion b/examples/.bazelversion index 04edabd..468c41f 100644 --- a/examples/.bazelversion +++ b/examples/.bazelversion @@ -1 +1 @@ -5.4.1 \ No newline at end of file +7.2.1 \ No newline at end of file diff --git a/examples/antlr4-opt/.bazelrc b/examples/antlr4-opt/.bazelrc new file mode 100644 index 0000000..7164c0b --- /dev/null +++ b/examples/antlr4-opt/.bazelrc @@ -0,0 +1 @@ +common --noenable_bzlmod \ No newline at end of file diff --git a/examples/antlr4-opt/.bazelversion b/examples/antlr4-opt/.bazelversion new file mode 100644 index 0000000..468c41f --- /dev/null +++ b/examples/antlr4-opt/.bazelversion @@ -0,0 +1 @@ +7.2.1 \ No newline at end of file