From 40daa84ccc65426c525abdb7d5ee45016044190f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 1 Nov 2016 12:41:17 -0400 Subject: [PATCH] syntax sugar and test-requirements.txt --- bin/test-compile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/test-compile b/bin/test-compile index a1d0b98..50d1933 100755 --- a/bin/test-compile +++ b/bin/test-compile @@ -1,3 +1,11 @@ #!/usr/bin/env bash -DISABLE_COLLECTSTATIC=1 "$(dirname ${0:-})/compile" "$1" "$2" "$3" \ No newline at end of file +# Syntax sugar. +BIN_DIR=$(cd $(dirname $0); pwd) # absolute path +source $BIN_DIR/utils + +DISABLE_COLLECTSTATIC=1 "$(dirname ${0:-})/compile" "$1" "$2" "$3" + +if [[ -f "$1/requirements-test.txt" ]]; then + /app/.heroku/python/bin/pip install -r requirements-test.txt --exists-action=w --src=./.heroku/src --disable-pip-version-check --no-cache-dir 2>&1 | cleanup | indent +fi