summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2014-12-24 16:29:57 +0000
committerJeremy Stanley <fungi@yuggoth.org>2014-12-24 17:44:25 +0000
commit2559759d3a8ed83a9d8f1e87fd61f9c2c724cbd8 (patch)
tree12ed5a661956b59f47ed21ca95ba66d3037e8c47
parenta4228942c8d117c622d0b71aaed6335fcd2848eb (diff)
downloadpbr-2559759d3a8ed83a9d8f1e87fd61f9c2c724cbd8.tar.gz
Build a wheel when integration testing PBR changes
Change-Id: Id6ac57a5fd2ab9089bdf6865c1e203fcf591f08d
-rw-r--r--tools/integration.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/integration.sh b/tools/integration.sh
index f4b5689..a6f0b1a 100644
--- a/tools/integration.sh
+++ b/tools/integration.sh
@@ -7,9 +7,9 @@ function mkvenv {
virtualenv $venv
$venv/bin/pip install -U pip wheel
- # If a change to PBR is being tested, preinstall from that source tree
+ # If a change to PBR is being tested, preinstall the wheel for it
if [ -n "$PBR_CHANGE" ] ; then
- $venv/bin/pip install $pbrsdistdir
+ $venv/bin/pip install $pbrsdistdir/dist/pbr-*.whl
fi
}
@@ -40,8 +40,10 @@ pbrsdistdir=$tmpdir/pbrsdist
git clone $REPODIR/pbr $pbrsdistdir
cd $pbrsdistdir
-# Flag whether a change to PBR is being tested
+# Prepare a wheel and flag whether a change to PBR is being tested
if git fetch $ZUUL_URL/$ZUUL_PROJECT $ZUUL_REF ; then
+ mkvenv wheel
+ wheel/bin/python setup.py bdist_wheel
PBR_CHANGE=1
fi