Skip to content

Commit

Permalink
Try python-top / specifying the runtime
Browse files Browse the repository at this point in the history
bazelbuild/bazel#4815 (comment)

Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
  • Loading branch information
oschaaf committed Jun 20, 2019
1 parent 5b897ee commit c37b041
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function do_test() {
# TODO(oschaaf): when bazel 0.27.0 lands in CI we can drop the python3 path/force line
bazel test $BAZEL_BUILD_OPTIONS $BAZEL_TEST_OPTIONS \
--test_output=all \
--python_path=/usr/bin/python3 --noincompatible_allow_python_version_transitions --force_python=py3 \
--python_top=//integration/:python3-runtime \
//test:nighthawk_test //test/server:http_test_server_filter_integration_test \
//integration:integration_test
}
Expand Down
8 changes: 8 additions & 0 deletions integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
licenses(["notice"]) # Apache 2

py_runtime(
name = "python3-runtime",
files = [],
interpreter_path = select({
"@bazel_tools//tools/python:PY3": "/usr/bin/python3",
}),
)

py_test(
name = "integration_test",
srcs = ["integration_test.py"],
Expand Down

0 comments on commit c37b041

Please sign in to comment.