From d5618bac4b40dd9ceed0fd4efbc26633f8604b50 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 7 Jul 2019 11:21:19 +0300 Subject: Change: don't run local tests (unit etc) if running yarns --- check | 39 ++++++++++++++++++++++----------------- 1 file 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 ] -- cgit v1.2.1