project-config/jenkins/scripts/run-tox-with-dependency-master.sh
Terry Wilson 11c363dae2 Remove broken tox.ini generation from script
envlist environments don't have the variables being referenced and
will fail. Just run the $venv test instead.

Change-Id: Ifa88de048acca5058801883ae3f8de5bfdb93192
2017-08-29 11:50:35 -05:00

22 lines
637 B
Bash
Executable File

#!/bin/bash -xe
# inspired from sister script run-tox-with-oslo-master.sh
project=$1
venv=$2
if [[ -z "$venv" || -z "$project" ]]; then
echo "Usage: $?"
echo
echo "PROJECT: The openstack project run as master (eg 'neutron-lib')"
echo "VENV: The tox environment to run (eg 'py35')"
exit 1
fi
script_path=/usr/local/jenkins/slave_scripts
sed -i "s/${project}.*/-e git+https:\/\/git.openstack.org\/openstack\/${project}.git#egg=${project}/g" requirements.txt
sed -i "s/${project}.*/-e git+https:\/\/git.openstack.org\/openstack\/${project}.git#egg=${project}/g" upper-constraints.txt
$script_path/run-tox.sh $venv