3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 setupdir = {toxinidir}/libraries
17 envlist = py27, pylint, check-requirements
21 COVERAGE_FILE=.coverage.{envname}
28 more-itertools < 6.0.0
29 -r{toxinidir}/requirements.txt
31 commands = py.test -v \
32 --basetemp={envtmpdir} \
36 --cov-report term-missing \
37 --cov-report html:coverage-html-{envname} \
38 --ignore testcases/pm-support/misc \
42 cache_dir = .pytest-cache
43 pep8maxlinelength = 100
46 basepython = python2.7
52 -r{toxinidir}/requirements.txt
54 commands = py.test -m pylint -v \
56 --pylint-rcfile={toxinidir}/.pylintrc \
57 --ignore resources/system_testing/latency \
58 --ignore testcases/pm-support/misc \
63 basepython = python2.7
70 -r{toxinidir}/requirements.txt
73 rfcli --pythonpath {toxinidir}:{toxinidir}/resources \
74 --rfcli-no-pythonpath \
77 [testenv:check-requirements]
78 basepython = python2.7
80 -r{toxinidir}/requirements.txt
81 more-itertools < 6.0.0
82 requirements-tools==1.1.2
85 commands = check-requirements
88 basepython = python2.7
90 deps = virtualenvrunner>=1.0
92 commands = create_virtualenv --recreate \
93 --requirements {toxinidir}/requirements-minimal.txt \
94 --save-freeze-path {toxinidir}/requirements.txt