Files
deb-python-falcon/tools/testing/install_hug.sh
Kurt Griffiths 67ca1ad679 test: Add Hug test and reorganize scripts and requirements (#1042)
Add a hug ecosystem test to validate Falcon against the most recent
Hug release, to ensure we aren't breaking anything over there. Along
the way, reorganize test scripts and requirement files since the
addition of the Hug tests would make the old structure even more
confusing than it already was.
2017-05-07 23:00:31 -05:00

24 lines
526 B
Bash
Executable File

#!/usr/bin/env bash
HUG_PATH=.ecosystem/hug
# Clean up in case we are running locally and not in travis
rm -rf $HUG_PATH
mkdir -p .ecosystem
git clone https://github.com/timothycrosley/hug.git $HUG_PATH
virtualenv $HUG_PATH/.venv
source $HUG_PATH/.venv/bin/activate
pip install hug
pushd $HUG_PATH
git checkout master
git pull
HUG_VERSION=$(pip freeze | grep hug | cut -c 6-)
git checkout tags/$HUG_VERSION
pip install -rrequirements/build.txt
popd
pip install . # Override Hug's Falcon version with the one under test