X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tox.ini;h=77613b8c6907e6656984595ca04a959b7b05fc18;hb=refs%2Fchanges%2F36%2F3536%2F4;hp=2e6ad9e01a65d74043580d615caea3db78e8cb87;hpb=1e502ffd2ef7f41f4bb06104c78203f2cb3aadac;p=ric-plt%2Fa1.git diff --git a/tox.ini b/tox.ini index 2e6ad9e..77613b8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ # ================================================================================== -# Copyright (c) 2019 Nokia -# Copyright (c) 2018-2019 AT&T Intellectual Property. +# Copyright (c) 2019-2020 Nokia +# Copyright (c) 2018-2020 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,11 +14,18 @@ # See the License for the specific language governing permissions and # limitations under the License. # ================================================================================== + +# Code + [tox] -envlist = py37,flake8,docs,docs-linkcheck +envlist = code,flake8,docs,docs-linkcheck minversion = 2.0 -[testenv] +[pytest] +testpaths = tests + +[testenv:code] +basepython = python3.8 deps= pytest coverage @@ -36,7 +43,7 @@ commands = coverage xml -i [testenv:flake8] -basepython = python3.7 +basepython = python3.8 skip_install = true deps = flake8 commands = flake8 setup.py a1 tests @@ -44,6 +51,13 @@ commands = flake8 setup.py a1 tests [flake8] extend-ignore = E501,E741,E731 +[testenv:clm] +# use pip to gather dependencies with versions for CLM analysis +whitelist_externals = sh +commands = sh -c 'pip freeze > requirements.txt' + +# Docs + # verbatim as asked for by the docs instructions: https://wiki.o-ran-sc.org/display/DOC/Configure+Repo+for+Documentation [testenv:docs] basepython = python3.7