do not create the venv virtualenv when it already exists

Change-Id: I934203b7cafba1d34405390bfb61b38711c1df14
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-01-23 13:52:58 -05:00
parent 33264f91d9
commit 748d6b0d80
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $TOOLSDIR/functions
if [[ -z "$VIRTUAL_ENV" ]]; then
tox -e venv --notest
if [[ ! -d .tox/venv ]]; then
tox -e venv --notest
fi
source ./.tox/venv/bin/activate
fi