blob: f1089fb47b5ff7691f169e37978e72a4feabedcb [file] [log] [blame]
#!/bin/sh
# Reverse dependency tester.
#
# This script is intended to be run within a virtualenv with latest
# version of more-executors installed. It'll run autotests from
# some *other* project which depends on more-executors.
URL="$1"
CLONE_DIR=$(mktemp -d -t --suffix=revdep)
clean(){
rm -rf $CLONE_DIR
}
trap clean EXIT
set -xe
git clone "$URL" "$CLONE_DIR"
cd "$CLONE_DIR"
pip install --editable .
if test -e test-requirements.txt; then
pip install -rtest-requirements.txt
fi
py.test -v