diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 41 |
1 files changed, 10 insertions, 31 deletions
@@ -2,20 +2,11 @@ set -euo pipefail -hideok=chronic -if ! command -v chronic >/dev/null; then - hideok= -fi -if [ "$#" -gt 0 ] && [ "$1" = -v ]; then - hideok= - shift -fi - -$hideok echo Running unit tests ============================================ -$hideok python3 -m CoverageTestRunner --ignore-missing-from=without-tests yarns vmdb -$hideok echo +echo Running unit tests ============================================ +python3 -m CoverageTestRunner --ignore-missing-from=without-tests yarns vmdb +echo -$hideok echo Checking every plugin looks OK ============================================ +echo Checking every plugin looks OK ============================================ for file in vmdb/plugins/*.py; do case "$file" in *_plugin.py) ;; @@ -29,27 +20,15 @@ for file in vmdb/plugins/*.py; do exit 1 fi done -$hideok echo - -if command -v sp-codegen >/dev/null; then - $hideok echo Running Subplot ============================================ - $hideok sp-codegen vmdb2.md -o test.py --run - $hideok echo -fi +echo -$hideok echo Running yarn tests ======================================== -if python3 -c 'import yarnutils' 2>/dev/null; then - $hideok yarn \ - --shell=python3 \ - --shell-arg '' \ - --shell-library yarns/lib.py \ - --env "PYTHONPATH=$(pwd)/yarns" \ - --cd-datadir \ - yarns/*.yarn "$@" - $hideok echo +if false && command -v subplot >/dev/null; then + echo Running Subplot ============================================ + subplot vmdb2.md -o test.py --run + echo fi -$hideok echo Formatting docs ======================================== +echo Formatting docs ======================================== ./format.sh plugindocs() { |