summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-08-30 15:02:48 +0300
committerLars Wirzenius <liw@liw.fi>2017-08-30 15:02:48 +0300
commitffcabb919e972a576564361a474dbfeca23d7ef9 (patch)
treedf99a25a5c99235ee16ceff66eaad4e1add30488 /check
parentef1a1bf76c47378a6432f8b6fe85bce4c1d9c605 (diff)
downloadqvisqve-ffcabb919e972a576564361a474dbfeca23d7ef9.tar.gz
Add: run ./check with/without postgres dep on env var
Diffstat (limited to 'check')
-rwxr-xr-xcheck8
1 files changed, 4 insertions, 4 deletions
diff --git a/check b/check
index bb50100..e4adfe3 100755
--- a/check
+++ b/check
@@ -28,11 +28,11 @@ python3 -m CoverageTestRunner --ignore-missing-from=without-tests
pep8 qvarn
pylint3 -j0 --rcfile pylint.conf qvarn
-# Run yarns without Postgres. For speed.
-#QVARN_POSTGRES= run_yarns "$@"
-
-if [ "${QVARN_POSTGRES:-no}" != no ]
+if [ "${QVARN_POSTGRES:-no}" = no ]
then
+ # Run yarns without Postgres. For speed.
+ run_yarns "$@"
+else
scripts/pgempty
run_yarns --env "QVARN_POSTGRES=$QVARN_POSTGRES" "$@"
fi