Files
cliff/integration-tests/openstackclient-stable.sh
Doug Hellmann 5fad56e89f Add integration tests with known consumers
Run the tests of some consumers of cliff to ensure that changes
being made do not break the apps or downsteam libraries.

Change-Id: Ifded67608b49044cc6a0832389ad7fe825148a3c
2014-01-03 22:58:50 +00:00

23 lines
553 B
Bash
Executable File

#!/bin/sh -x
set -e
envdir=$1
# Manually download the source from PyPI and build it with the --editable flag.
# This gives us access to run the tests.
pip install --pre --no-deps --no-install --no-clean python-openstackclient
# This is where the source will end up after pip is done downloading and building it
srcdir=$envdir/build/python-openstackclient/
cd $srcdir
# Install the source safely
pip install --no-clean -ve .
# Install the test requirements
pip install --no-clean -r $srcdir/test-requirements.txt
# Run testr
python setup.py testr