diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2016-12-21 10:16:47 +0100 |
---|---|---|
committer | Martin Babinsky <mbabinsk@redhat.com> | 2017-01-05 16:21:51 +0100 |
commit | f48d6fc168253209bed3f1dd5a543f15d1f54669 (patch) | |
tree | 36751f45045ed739bbddeb2d00024bf9f8bea30f /.travis_run_task.sh | |
parent | b6216756f6c7a950e9bf2afe56a582dd8195c513 (diff) | |
download | freeipa-f48d6fc168253209bed3f1dd5a543f15d1f54669.tar.gz freeipa-f48d6fc168253209bed3f1dd5a543f15d1f54669.tar.xz freeipa-f48d6fc168253209bed3f1dd5a543f15d1f54669.zip |
Travis CI: use specific Python version during build
This is a preparatory work for the future requirement of running
Python2/3 jobs simultaneously.
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to '.travis_run_task.sh')
-rwxr-xr-x | .travis_run_task.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis_run_task.sh b/.travis_run_task.sh index 2163a9b71..4eb78c9c6 100755 --- a/.travis_run_task.sh +++ b/.travis_run_task.sh @@ -1,8 +1,8 @@ #!/bin/bash # NOTE: this script is intended to run in Travis CI only -set -ev +PYTHON="/usr/bin/python${TRAVIS_PYTHON_VERSION}" test_set="" developer_mode_opt="--developer-mode" @@ -29,6 +29,7 @@ docker pull $TEST_RUNNER_IMAGE ipa-docker-test-runner -l $CI_RESULTS_LOG \ -c $TEST_RUNNER_CONFIG \ $developer_mode_opt \ + --container-environment "PYTHON=$PYTHON" \ --container-image $TEST_RUNNER_IMAGE \ --git-repo $TRAVIS_BUILD_DIR \ $TASK_TO_RUN $test_set |