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} \
41 cache_dir = .pytest-cache
42 pep8maxlinelength = 100
45 basepython = python2.7
51 -r{toxinidir}/requirements.txt
53 commands = py.test -m pylint -v \
55 --pylint-rcfile={toxinidir}/.pylintrc \
56 --ignore resources/system_testing/latency \
61 basepython = python2.7
68 -r{toxinidir}/requirements.txt
71 rfcli --pythonpath {toxinidir}:{toxinidir}/resources \
72 --rfcli-no-pythonpath \
75 [testenv:check-requirements]
76 basepython = python2.7
78 -r{toxinidir}/requirements.txt
79 more-itertools < 6.0.0
80 requirements-tools==1.1.2
83 commands = check-requirements
86 basepython = python2.7
88 deps = virtualenvrunner>=1.0
90 commands = create_virtualenv --recreate \
91 --requirements {toxinidir}/requirements-minimal.txt \
92 --save-freeze-path {toxinidir}/requirements.txt