summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-07-07 11:21:19 +0300
committerLars Wirzenius <liw@liw.fi>2019-07-07 11:21:19 +0300
commitd5618bac4b40dd9ceed0fd4efbc26633f8604b50 (patch)
tree83298a420e8b79b3170745fb203041f928cdb0ad
parent1fc41ad97411b435c512ba3a0de63929eda9c33d (diff)
downloadick2-d5618bac4b40dd9ceed0fd4efbc26633f8604b50.tar.gz
Change: don't run local tests (unit etc) if running yarns
-rwxr-xr-xcheck39
1 files changed, 22 insertions, 17 deletions
diff --git a/check b/check
index 1e98ee1..913f21d 100755
--- a/check
+++ b/check
@@ -31,11 +31,13 @@ title()
title Remote yarns?
+local=yes
yarns=no
if [ "$#" -gt 0 ]
then
case "$1" in
https://*)
+ local=no
yarns=yes
remote_url="$1"
shift 1
@@ -48,29 +50,32 @@ then
fi
-title Unit tests
-python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2
-
-if [ -e .git ]
+if [ "$local" = yes ]
then
- sources="$(git ls-files | grep -Fvxf copyright-exceptions)"
+ title Unit tests
+ python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2
- title Copyright statements
- copyright-statement-lint $sources
+ if [ -e .git ]
+ then
+ sources="$(git ls-files | grep -Fvxf copyright-exceptions)"
- title Copyright licences
- ./is-agpl3+ $sources
-fi
+ title Copyright statements
+ copyright-statement-lint $sources
-python_sources="ick_controller.py worker_manager ick2 icktool"
+ title Copyright licences
+ ./is-agpl3+ $sources
+ fi
-title pycodestyle
-pycodestyle ick2 $python_sources
+ python_sources="ick_controller.py worker_manager ick2 icktool"
-if command -v pylint3 > /dev/null
-then
- title pylint3
- pylint3 --rcfile pylint.conf $python_sources
+ title pycodestyle
+ pycodestyle ick2 $python_sources
+
+ if command -v pylint3 > /dev/null
+ then
+ title pylint3
+ pylint3 --rcfile pylint.conf $python_sources
+ fi
fi
if [ "$yarns" = yes ]