Skip to content
Snippets Groups Projects
Commit 5405cfec authored by Mark Goddard's avatar Mark Goddard
Browse files

CI: Use python3 for openstack clients

This switches our test jobs to use python 3 for the installation of
OpenStack clients used to test the control plane.

Change-Id: I6bf0a315cef174c42a69db3a7d57f602b27ac92c
Related: blueprint python 3
parent 516cb3d9
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,10 @@ GIT_PROJECT_DIR=$(mktemp -d) ...@@ -10,7 +10,10 @@ GIT_PROJECT_DIR=$(mktemp -d)
function setup_openstack_clients { function setup_openstack_clients {
# Prepare virtualenv for openstack deployment tests # Prepare virtualenv for openstack deployment tests
virtualenv ~/openstackclient-venv if [[ "debian" == $BASE_DISTRO ]]; then
sudo apt -y install python3-venv
fi
python3 -m venv ~/openstackclient-venv
~/openstackclient-venv/bin/pip install -U pip ~/openstackclient-venv/bin/pip install -U pip
~/openstackclient-venv/bin/pip install python-openstackclient ~/openstackclient-venv/bin/pip install python-openstackclient
~/openstackclient-venv/bin/pip install python-heatclient ~/openstackclient-venv/bin/pip install python-heatclient
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment