We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42275a7 commit f48385eCopy full SHA for f48385e
script/run_tests
@@ -2,6 +2,7 @@
2
# Runs pep8, pylint, and unittests
3
BASE_DIR="$( cd "$(dirname "$0")/.." ; pwd -P )"
4
SRC_DIR="${BASE_DIR}/src"
5
+ENV_DIR=".venv"
6
PACKAGES="codejam"
7
STATUS=0
8
@@ -13,6 +14,18 @@ exit_msg() {
13
14
fi
15
}
16
17
+# Activate the virtualenv if one isn't active
18
+if [ -z "$VIRTUAL_ENV" ]; then
19
+ if [ -d "${BASE_DIR}/.venv" ]; then
20
+ echo -n "Activating the virtual environment... "
21
+ source "${BASE_DIR}/.venv/bin/activate"
22
+ echo "done"
23
+ else
24
+ echo "No virtualenv to activate!"
25
+ exit 1
26
+ fi
27
+fi
28
+
29
# test if pep8 exists
30
if ! hash pep8 2>/dev/null; then
31
echo "pep8 is not on the path!"
0 commit comments