X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=tox.ini;h=97f76d6152e29b6b634edad230ab4aaf92739872;hb=refs%2Fheads%2Fdawn;hp=75f1f8ac3c07138bfdb6cfd58c6bfc1869223469;hpb=4f8b2a6fc8581b8227489d857f06d7734883700a;p=ric-app%2Fad.git diff --git a/tox.ini b/tox.ini index 75f1f8a..97f76d6 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,25 +17,29 @@ envlist = code,flake8,docs,docs-linkcheck minversion = 2.0 [testenv:code] -basepython = python3.8 +basepython = python3.7 deps= pytest coverage pytest-cov + setenv = LD_LIBRARY_PATH = /usr/local/lib/:/usr/local/lib64 + PYTHONPATH = {toxinidir}:ad:/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 ad --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=50 coverage xml -i [testenv:flake8] -basepython = python3.8 +basepython = python3.7 skip_install = true deps = flake8 +setenv = + PYTHONPATH = {toxinidir}:ad:/usr/lib/python3.7/site-packages/ commands = flake8 setup.py ad tests [flake8] @@ -51,7 +54,8 @@ commands = sh -c 'pip freeze > requirements.txt' [testenv:docs] whitelist_externals = echo skipsdist = true -basepython = python3.8 +basepython = python3.7 + deps = sphinx sphinx-rtd-theme @@ -64,7 +68,7 @@ commands = [testenv:docs-linkcheck] skipsdist = true -basepython = python3.8 +basepython = python3.7 deps = sphinx sphinx-rtd-theme sphinxcontrib-httpdomain