diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 64e26f5b2b5659db05a6cd975e3d2ac30be5ef64..24be19a0d51f9806ea712e81a1dfd0d97d4d5468 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -361,6 +361,15 @@ bandit: script: - cd tangostationcontrol - tox -e bandit +xenon: + stage: static-analysis + allow_failure: true + before_script: + - sudo apt-get update + - sudo apt-get install -y git + script: + - cd tangostationcontrol + - tox -e xenon shellcheck: stage: static-analysis before_script: diff --git a/tangostationcontrol/test-requirements.txt b/tangostationcontrol/test-requirements.txt index 1c18f0949ae6a3059fa0dcce9059e016a9a76e22..b838488f5b1c37e796e6c9a0a7dc0a5c2e0ba341 100644 --- a/tangostationcontrol/test-requirements.txt +++ b/tangostationcontrol/test-requirements.txt @@ -18,3 +18,4 @@ stestr>=3.0.0 # Apache-2.0 testscenarios>=0.5.0 # Apache-2.0/BSD testtools>=2.4.0 # MIT timeout-decorator>=0.5 # MIT +xenon>=0.8.0 # MIT diff --git a/tangostationcontrol/tox.ini b/tangostationcontrol/tox.ini index c33316109926f6be052c0bd99b4ef5cd51a1217c..fbacf0cbd7bcd0b21b26db755e9452757cfc0a17 100644 --- a/tangostationcontrol/tox.ini +++ b/tangostationcontrol/tox.ini @@ -67,6 +67,10 @@ commands = commands = bandit -r devices/ -n5 -ll -s B104 +[testenv:xenon]; +commands = + xenon tangostationcontrol -b B -m A -a A + [testenv:docs] deps = -r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt