blob: 89088464376c6d9b650014db56c8913e38a45875 [file] [edit]
#!/usr/bin/env bash
set -eufo pipefail
# We want to see what's going on
set -x
# Default to auto if no parameter is provided
CACHE_RESULTS="auto"
# If "disable test cache" is passed in and true
if [ $# -gt 0 ] && [ "$1" = "true" ]; then
CACHE_RESULTS="no"
fi
# Now run the tests. The engflow build uses pinned browsers
# so this should be fine
# shellcheck disable=SC2046
bazel test --config=rbe-ci --build_tests_only \
--keep_going --flaky_test_attempts=2 \
--cache_test_results=${CACHE_RESULTS} \
//... -- $(cat .skipped-tests | tr '\n' ' ')
# Build the packages we want to ship to users
bazel build --config=rbe-ci --build_tag_filters=release-artifact //...