From: Tommy Carpenter Date: Wed, 18 Sep 2019 12:46:55 +0000 (-0400) Subject: Add sonar pom and tox hooks. X-Git-Tag: 1.0.0~7 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=bb5ad70e6a48771e7ace7874bf6c9fa7df49100f;p=ric-plt%2Fa1.git Add sonar pom and tox hooks. Rebase sonar (+/951) onto v11. Change-Id: I21feed13a1007d5e1556afb9eac340f4ea43b0f2 Signed-off-by: Tommy Carpenter --- diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9d91265 --- /dev/null +++ b/pom.xml @@ -0,0 +1,37 @@ + + + + 4.0.0 + org.o-ran-sc.ric-plt.a1 + a1mediator + 0 + + UTF-8 + . + xunit-results.xml + coverage.xml + xunit-results.xml + py + python + a1/*.py + tests/*,setup.py + + diff --git a/tox.ini b/tox.ini index dc9f690..edf4828 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,9 @@ setenv = RMR_RETRY_TIMES = 2 # Note, before this will work, for the first time on that machine, run ./install_deps.sh -commands=pytest --verbose --cov {envsitepackagesdir}/a1 --cov-report term-missing --cov-report html +commands = + pytest --junitxml xunit-results.xml --verbose --cov {envsitepackagesdir}/a1 --cov-report term-missing --cov-report html --cov-report xml + coverage xml -i [testenv:flake8] basepython = python3.7