Files
deb-python-dcos/cli/bin/test.sh

17 lines
299 B
Bash
Executable File

#!/bin/bash -e
BASEDIR=`dirname $0`/..
cd $BASEDIR
if [ -f "$BASEDIR/env/bin/activate" ]; then
source $BASEDIR/env/bin/activate
else
$BASEDIR/env/Scripts/activate
fi
echo "Virtualenv activated."
chmod 600 $BASEDIR/tests/data/dcos.toml
chmod 600 $BASEDIR/tests/data/config/parse_error.toml
tox