Files
deb-python-dcos/cli/bin/test-binary.sh
tamarrow 77afc61fc6 only support python3 for creating binaries (#669)
Also explicitly use python3 in creating virtualenv for make commands.
2016-07-06 18:33:33 -07:00

18 lines
349 B
Bash
Executable File

#!/bin/bash -e
BASEDIR=`dirname $0`/..
cd $BASEDIR
if [ -f "$BASEDIR/env/bin/activate" ]; then
cp tests/data/dcos.toml $DCOS_CONFIG
source $BASEDIR/env/bin/activate
else
export DCOS_CONFIG=tests/data/dcos.toml
$BASEDIR/env/Scripts/activate
fi
export PATH=$BASEDIR/dist:$PATH
py.test tests/integrations
deactivate