mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-29 10:21:38 +02:00
testing/bazel7: fix flaky builds
This commit is contained in:
parent
98db12245e
commit
2d44448fd3
@ -27,29 +27,29 @@ build() {
|
||||
EXTRA_BAZEL_ARGS=--tool_java_runtime_version=local_jdk \
|
||||
./compile.sh
|
||||
|
||||
./output/bazel build //scripts:bazel-complete.bash
|
||||
./output/bazel --batch build //scripts:bazel-complete.bash
|
||||
cp bazel-bin/scripts/bazel-complete.bash output/
|
||||
|
||||
./output/bazel clean --expunge
|
||||
./output/bazel --batch clean --expunge
|
||||
}
|
||||
|
||||
check() {
|
||||
# shellcheck disable=SC2046
|
||||
./output/bazel build $(\
|
||||
./output/bazel query --noshow_progress '//examples/...' \
|
||||
./output/bazel --batch build $(\
|
||||
./output/bazel --batch query --noshow_progress '//examples/...' \
|
||||
| grep -vF \
|
||||
-e /android/ \
|
||||
-e /windows/ \
|
||||
-e :hello-error-prone \
|
||||
)
|
||||
./output/bazel test \
|
||||
./output/bazel --batch test \
|
||||
//examples/cpp:hello-success_test \
|
||||
//examples/java-native/src/test/java/com/example/myproject:custom \
|
||||
//examples/java-native/src/test/java/com/example/myproject:hello \
|
||||
//examples/java-starlark/src/test/java/com/example/myproject:pass \
|
||||
//examples/shell:test
|
||||
|
||||
./output/bazel clean --expunge
|
||||
./output/bazel --batch clean --expunge
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user