X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=94563ee3d6f6ec95f5a5a973c06005cb8aaf83bb;hb=16f8a7bd1bcc93d5de0db1ea0bc7e866853413b4;hp=75f1f8ac3c07138bfdb6cfd58c6bfc1869223469;hpb=4f8b2a6fc8581b8227489d857f06d7734883700a;p=ric-app%2Fad.git diff --git a/tox.ini b/tox.ini index 75f1f8a..94563ee 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,4 @@ -# ================================================================================== -# Copyright (c) 2020 AT&T Intellectual Property. +# Copyright (c) 2020 HCL Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,26 +17,30 @@ envlist = code,flake8,docs,docs-linkcheck minversion = 2.0 [testenv:code] -basepython = python3.8 +basepython = python3 deps= pytest coverage pytest-cov + setenv = LD_LIBRARY_PATH = /usr/local/lib/:/usr/local/lib64 + PYTHONPATH = {toxinidir}:src:/usr/lib/python3.7/site-packages/ RMR_SEED_RT = tests/fixtures/test_local.rt RMR_ASYNC_CONN = 0 USE_FAKE_SDL = 1 commands = - pytest -v --cov ad --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 + pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 coverage xml -i [testenv:flake8] -basepython = python3.8 +basepython = python3 skip_install = true deps = flake8 -commands = flake8 setup.py ad tests +setenv = + PYTHONPATH = {toxinidir}:src:/usr/lib/python3.7/site-packages/ +commands = flake8 setup.py src tests [flake8] extend-ignore = E501,E741,E731 @@ -51,23 +54,27 @@ commands = sh -c 'pip freeze > requirements.txt' [testenv:docs] whitelist_externals = echo skipsdist = true -basepython = python3.8 +basepython = python3 + deps = sphinx sphinx-rtd-theme sphinxcontrib-httpdomain recommonmark lfdocs-conf + urllib3~=1.26.15 +allowlist_externals = echo commands = sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html echo "Generated docs available in {toxinidir}/docs/_build/html" [testenv:docs-linkcheck] skipsdist = true -basepython = python3.8 +basepython = python3 deps = sphinx sphinx-rtd-theme sphinxcontrib-httpdomain recommonmark lfdocs-conf + urllib3~=1.26.15 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck