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 libraries/common/test_constants.py \
39 --ignore testcases/pm-support/misc \
43 cache_dir = .pytest-cache
44 pep8maxlinelength = 120
47 basepython = python2.7
53 -r{toxinidir}/requirements.txt
55 commands = py.test -m pylint -v \
57 --pylint-rcfile={toxinidir}/.pylintrc \
58 --ignore resources/system_testing/latency \
59 --ignore libraries/common/test_constants.py \
60 --ignore testcases/pm-support/misc \
65 basepython = python2.7
72 -r{toxinidir}/requirements.txt
75 rfcli --pythonpath {toxinidir}:{toxinidir}/resources \
76 --rfcli-no-pythonpath \
79 [testenv:check-requirements]
80 basepython = python2.7
82 -r{toxinidir}/requirements.txt
83 more-itertools < 6.0.0
84 requirements-tools==1.1.2
87 commands = check-requirements
90 basepython = python2.7
92 deps = virtualenvrunner>=1.0
94 commands = create_virtualenv --recreate \
95 --requirements {toxinidir}/requirements-minimal.txt \
96 --save-freeze-path {toxinidir}/requirements.txt