summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Gordon <joe.gordon0@gmail.com>2014-03-14 16:59:03 -0700
committerJoe Gordon <joe.gordon0@gmail.com>2014-03-18 17:10:21 -0700
commite387ef0cad8d065a0614e531d8ed4849997a6a34 (patch)
tree3194f89d7918697f63cf7f8449546b28ff18f2e9
parent9fdd06fcbb646861ff6c79107d9e7aa803b2f9d3 (diff)
downloadpbr-e387ef0cad8d065a0614e531d8ed4849997a6a34.tar.gz
Make tools/integration.sh take a branch
Instead of always using master branch support the option to use stable branches. Read the branch via the $OVERRIDE_ZUUL_BRANCH environmental variable that devstack-gate sets Change-Id: Iab4ae1efddc4dca38dcd3779dae1a79ddc2b0852
-rw-r--r--tools/integration.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/integration.sh b/tools/integration.sh
index 8053406..b6021f3 100644
--- a/tools/integration.sh
+++ b/tools/integration.sh
@@ -106,6 +106,8 @@ sudo chown root:root /etc/apache2/sites-available/pypi
sudo a2ensite pypi
sudo service apache2 reload
+#BRANCH
+BRANCH=${OVERRIDE_ZUUL_BRANCH=:-master}
# PROJECTS is a list of projects that we're testing
PROJECTS=$*
@@ -117,7 +119,7 @@ cd $pbrsdistdir
# --no-update is passed as well. The one thing the -b
# does give us is it makes run-mirror install dependencies
# once instead of over and over for all branches it can find.
-$pypimirrorvenv/bin/run-mirror -b remotes/origin/master --no-update --verbose -c $tmpdir/mirror.yaml --no-process --export=$HOME/mirror_package_list.txt
+$pypimirrorvenv/bin/run-mirror -b remotes/origin/$BRANCH --no-update --verbose -c $tmpdir/mirror.yaml --no-process --export=$HOME/mirror_package_list.txt
# Compare packages in the mirror with the list of requirements
gen_bare_package_list "$REPODIR/requirements/global-requirements.txt $REPODIR/requirements/dev-requirements.txt" > bare_all_requirements.txt
gen_bare_package_list $HOME/mirror_package_list.txt > bare_mirror_package_list.txt
@@ -130,7 +132,7 @@ $pypimirrorvenv/bin/pip install -i http://pypi.python.org/simple -d $tmpdownload
$pypimirrorvenv/bin/pip install -i http://pypi.python.org/simple -d $tmpdownload/pip/openstack -r requirements.txt
$pypimirrorvenv/bin/python setup.py sdist -d $tmpdownload/pip/openstack
-$pypimirrorvenv/bin/run-mirror -b remotes/origin/master --no-update --verbose -c $tmpdir/mirror.yaml --no-download
+$pypimirrorvenv/bin/run-mirror -b remotes/origin/$BRANCH --no-update --verbose -c $tmpdir/mirror.yaml --no-download
find $pypidir -type f -name '*.html' -delete
find $pypidir