fixing flake8 tests
[osm/RO.git] / RO-SDN-odl_openflow / tox.ini
1 ##
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11 # implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ##
15
16 [tox]
17 envlist = flake8
18 toxworkdir={toxinidir}/../.tox
19
20 [testenv]
21 basepython = python3
22 install_command = python3 -m pip install -U {opts} {packages}
23 # deps = -r{toxinidir}/test-requirements.txt
24 commands=python3 -m unittest discover -v
25
26 [testenv:flake8]
27 basepython = python3
28 deps = flake8
29 -r{toxinidir}/requirements.txt
30 install_command = python3 -m pip install -U {opts} {packages}
31 commands = flake8 osm_rosdn_odlof --max-line-length 120 \
32 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226,W504
33
34 [testenv:unittest]
35 basepython = python3
36 commands = python3 -m unittest osm_rosdn_odlof.tests
37
38 [testenv:build]
39 basepython = python3
40 deps = stdeb
41 setuptools-version-command
42 commands = python3 setup.py --command-packages=stdeb.command bdist_deb
43