-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·28 lines (21 loc) · 852 Bytes
/
setup.sh
File metadata and controls
executable file
·28 lines (21 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Setup globals used by the tests
#set -x
# tmplocation=${TMPDIR:-/tmp}
# export WORKON_HOME="$(echo ${tmplocation}/WORKON_HOME.$$ | sed 's|//|/|g')"
# export PROJECT_HOME="$(echo ${tmplocation}/PROJECT_HOME.$$ | sed 's|//|/|g')"
export WORKON_HOME=$(mktemp -d -t "WORKON_HOME.XXXX.$$")
export PROJECT_HOME=$(mktemp -d -t "PROJECT_HOME.XXXX.$$")
#unset HOOK_VERBOSE_OPTION
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# This should point to VIRTUAL_ENV/bin when running under tox.
TEST_BIN_DIR=$(dirname $(which python))
load_wrappers() {
if [ "$USING_TOX" = "1" ]; then
# Use the version of the scripts installed as part of the
# package.
source "$TEST_BIN_DIR/virtualenvwrapper.sh"
else
echo "USING SOURCE VERSION OF SCRIPT"
source "$SCRIPTDIR/../virtualenvwrapper.sh"
fi
}