jenkins-ssh-credential: '{jenkins-ssh-credential}'
builders:
- - shell: !include-raw-escape:
- # Workaround issue where the tox run later breaks the lftools virtualenv.
- # Without running the install first the run in the publisher will fail
- # due to missing lftools because it gets installed into a tox venv.
- - ../shell/lftools-install.sh
+ - lf-infra-pre-build
- lf-infra-tox-install:
python-version: '{python-version}'
- shell: !include-raw-escape: ../shell/tox-run.sh
--- /dev/null
+---
+fixes:
+ - |
+ Fix the lftools virtualenv workaround we had to put in place in
+ the tox-verify job by using ``pip install --user`` for global tool
+ installs.
python-openstackclient~=3.16.0
EOF
+# Use `python -m pip` to ensure we are using the latest version of pip
python -m pip install --user --quiet --upgrade pip~=18.0 setuptools~=40.2.0
python -m pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE"
pip freeze
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
-virtualenv --quiet -p "$PYTHON_VERSION" "/tmp/v/tox"
-# shellcheck source=/tmp/v/tox/bin/activate disable=SC1091
-source "/tmp/v/tox/bin/activate"
-pip install --quiet --upgrade "pip==9.0.3" setuptools
-pip install --quiet --upgrade argparse detox "tox<3.0.0" tox-pyenv
+python -m pip install --user --quiet --upgrade argparse detox "tox<3.0.0" tox-pyenv
echo "----> pip freeze"
pip freeze
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
##############################################################################
echo "---> tox-run.sh"
-# shellcheck source=/tmp/v/tox/bin/activate disable=SC1091
-source "/tmp/v/tox/bin/activate"
-
# Ensure we fail the job if any steps fail.
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail