Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/scripts/github-actions/ci-build.sh
2867 views
1
#!/usr/bin/env bash
2
3
set -eufo pipefail
4
# We want to see what's going on
5
set -x
6
7
# Define heap size for GitHub Actions runner
8
HEAP_SIZE="-Xmx8g"
9
10
# Default to auto if no parameter is provided
11
CACHE_RESULTS="auto"
12
13
# If "disable test cache" is passed in and true
14
if [ $# -gt 0 ] && [ "$1" = "true" ]; then
15
CACHE_RESULTS="no"
16
fi
17
18
# Now run the tests. The engflow build uses pinned browsers
19
# so this should be fine
20
# shellcheck disable=SC2046
21
bazel --host_jvm_args=${HEAP_SIZE} test --config=rbe-ci --build_tests_only \
22
--keep_going --flaky_test_attempts=2 \
23
--cache_test_results=${CACHE_RESULTS} \
24
//... -- $(cat .skipped-tests | tr '\n' ' ')
25
26
# Build the packages we want to ship to users
27
bazel build --config=rbe-ci --build_tag_filters=release-artifact //...
28
29