From bb5ad70e6a48771e7ace7874bf6c9fa7df49100f Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Wed, 18 Sep 2019 08:46:55 -0400 Subject: [PATCH] Add sonar pom and tox hooks. Rebase sonar (+/951) onto v11. Change-Id: I21feed13a1007d5e1556afb9eac340f4ea43b0f2 Signed-off-by: Tommy Carpenter --- pom.xml | 37 +++++++++++++++++++++++++++++++++++++ tox.ini | 4 +++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 pom.xml 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 -- 2.16.6