aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2015-09-25 01:39:44 -0400
committerTeddy Wing2015-09-25 01:39:44 -0400
commit936ddb9eb1e0d46f2ccbba7cf0f40c5b634b5c92 (patch)
tree078942a6914248b037d594f4a5a1ef9884156031 /Makefile
parentefa1909b2fa955e5170eecda8d1d42598c817f07 (diff)
downloadgit-hook-pre-commit-python-javascript-syntax-linter-936ddb9eb1e0d46f2ccbba7cf0f40c5b634b5c92.tar.bz2
Makefile: Ensure virtualenv is sourced before running tests
Otherwise they'll fail since `flake8` won't be available.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4f0579c..adefdd2 100644
--- a/Makefile
+++ b/Makefile
@@ -2,4 +2,4 @@
# https://github.com/RichiH/vcsh/blob/master/Makefile
test:
@if which git > /dev/null; then : ; else echo "'git' not found, exiting..." ; exit 1; fi
- @if which prove > /dev/null; then prove; else echo "'prove' not found; not running tests"; fi
+ @if which prove > /dev/null; then source virtualenv/bin/activate; prove; else echo "'prove' not found; not running tests"; fi