summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-02-14 12:34:52 +0200
committerLars Wirzenius <liw@liw.fi>2018-02-14 12:34:52 +0200
commit6fd66490f2cc23cb0d95a52486b72b7ec55d81ba (patch)
treeda4d170356c22716b2bdd5bb74ead29e963a6070 /check
parent61c598e14f362a58d2c30233cc8d042977198ac6 (diff)
downloadick2-6fd66490f2cc23cb0d95a52486b72b7ec55d81ba.tar.gz
Change: allow user to only run yarns with ./check
Diffstat (limited to 'check')
-rwxr-xr-xcheck16
1 files changed, 9 insertions, 7 deletions
diff --git a/check b/check
index 641eefe..9519fac 100755
--- a/check
+++ b/check
@@ -32,16 +32,24 @@ title()
title Remote or local yarns?
remote=no
+unit=yes
if [ "$#" -gt 0 ]
then
case "$1" in
https://*)
remote=yes
+ unit=no
remote_url="$1"
shift 1
;;
+ yarns)
+ remote=no
+ unit=no
+ shift 1
+ ;;
local)
remote=no
+ unit=yes
shift 1
;;
*)
@@ -50,15 +58,9 @@ then
;;
esac
fi
-if [ "$remote" = no ]
-then
- echo "Run yarns against a locally managed instance"
-else
- echo "Run yarns against remote instance $remote_url"
-fi
-if [ "$remote" = no ]
+if [ "$unit" = yes ]
then
title Unit tests
python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2