Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit f0c9ec7

Browse files
committed
tests: Run with toolchains flag
1 parent 0356bef commit f0c9ec7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ addons:
1313
- bazel
1414
script:
1515
- ./run_tests.sh
16+
env:
17+
- BAZEL_ARGS=
18+
- BAZEL_ARGS="--incompatible_use_python_toolchains"

run_tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ for PYTHON_INTERPRETER in "${PYTHON2}" "${PYTHON3}"; do
5858
fi
5959

6060
if [ "${PYTHON_INTERPRETER}" = "${PYTHON3}" ]; then
61-
BAZEL_TEST="bazel test --define subpar_test_python_version=3"
61+
BAZEL_TEST="bazel test --define subpar_test_python_version=3 ${BAZEL_ARGS:-}"
6262
else
63-
BAZEL_TEST="bazel test"
63+
BAZEL_TEST="bazel test ${BAZEL_ARGS:-}"
6464
fi
6565

6666
echo "Testing ${PYTHON_INTERPRETER}"

0 commit comments

Comments
 (0)