From 936ddb9eb1e0d46f2ccbba7cf0f40c5b634b5c92 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 25 Sep 2015 01:39:44 -0400 Subject: Makefile: Ensure virtualenv is sourced before running tests Otherwise they'll fail since `flake8` won't be available. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3