From 5b42026fe2b4b6ae701c6623467e1c6570847d08 Mon Sep 17 00:00:00 2001 From: lukken <lukken@astron.nl> Date: Tue, 20 Sep 2022 13:22:20 +0000 Subject: [PATCH] L2SS-953: print versions during jobs --- .gitlab-ci.yml | 3 ++- tangostationcontrol/tox.ini | 31 ++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index badf33f0d..8d2e2c7cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -527,7 +527,8 @@ xenon: shellcheck: stage: static-analysis script: -# TODO(Corne): Ignore shell files in submodules +# TODO(Corne): L2SS-962: Ignore shell files in submodules + - shellcheck --version - shellcheck **/*.sh sphinx-documentation: stage: documentation diff --git a/tangostationcontrol/tox.ini b/tangostationcontrol/tox.ini index 1431b618a..52d27b6ea 100644 --- a/tangostationcontrol/tox.ini +++ b/tangostationcontrol/tox.ini @@ -24,7 +24,11 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt -r{toxinidir}/test-requirements.txt -commands = {envpython} -m stestr run {posargs} +commands_pre = + {envpython} --version +commands = + {envpython} -m stestr --version + {envpython} -m stestr run {posargs} [testenv:integration] ; Warning running integration tests will make changes to your docker system! @@ -37,6 +41,8 @@ setenv = PYTHON={envpython} -m coverage run --source tangostationcontrol --parallel-mode commands = echo "Integration test directory configured for{env:TESTS_DIR} ({env:TEST_MODULE:default})" + {envpython} -m stestr --version + {envpython} -m coverage --version {envpython} -m stestr run --serial {posargs} {envpython} -m coverage combine {envpython} -m coverage html --omit='*test*' -d cover @@ -54,16 +60,20 @@ deps = -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt -r{toxinidir}/test-requirements.txt commands = - {envpython} -m coverage erase - {envpython} -m stestr run {posargs} - {envpython} -m coverage combine - {envpython} -m coverage html --omit='*test*' -d cover - {envpython} -m coverage xml -o coverage.xml - {envpython} -m coverage report --omit='*test*' + {envpython} -m stestr --version + {envpython} -m coverage --version + {envpython} -m coverage erase + {envpython} -m stestr run {posargs} + {envpython} -m coverage combine + {envpython} -m coverage html --omit='*test*' -d cover + {envpython} -m coverage xml -o coverage.xml + {envpython} -m coverage report --omit='*test*' ; TODO(Corne): Integrate Hacking to customize pep8 rules [testenv:pep8] commands = + {envpython} -m doc8 --version + {envpython} -m flake8 --version {envpython} -m doc8 docs/source/ --ignore D001 {envpython} -m flake8 @@ -73,18 +83,21 @@ commands = ; It thus matters what interfaces Docker will bind our ; containers to, not what our containers listen on. commands = + {envpython} -m bandit --version {envpython} -m bandit -r devices/ -n5 -ll -s B104 [testenv:xenon]; commands = - {envpython} -m xenon tangostationcontrol -b B -m A -a A -i libhdbpp-python + {envpython} -m xenon --version + {envpython} -m xenon tangostationcontrol -b B -m A -a A -i libhdbpp-python [testenv:docs] deps = -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt -r{toxinidir}/docs/docs-requirements.txt commands = - sphinx-build -W -b html docs/source docs/build/html + sphinx-build --version + sphinx-build -W -b html docs/source docs/build/html [flake8] filename = *.py,.stestr.conf,.txt -- GitLab