summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-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 ]