blob: 47743ef73ad817e5ff9cb74c8a5a8c9a43b5cce7 [file] [log] [blame]
tiernoce1c9c82020-03-04 20:09:42 +00001##
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]
17envlist = flake8
tierno1ec592d2020-06-16 15:29:47 +000018toxworkdir={toxinidir}/../.tox
tiernoce1c9c82020-03-04 20:09:42 +000019
20[testenv]
21basepython = python3
22install_command = python3 -m pip install -U {opts} {packages}
23# deps = -r{toxinidir}/test-requirements.txt
24commands=python3 -m unittest discover -v
25
26[testenv:flake8]
27basepython = python3
28deps = flake8
29 -r{toxinidir}/requirements.txt
30install_command = python3 -m pip install -U {opts} {packages}
31commands = flake8 osm_rosdn_odlof --max-line-length 120 \
sousaedu2ad85172021-02-17 15:05:18 +010032 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,W503,W605,E123,E125,E203,E226,E241
tiernoce1c9c82020-03-04 20:09:42 +000033
34[testenv:unittest]
35basepython = python3
36commands = python3 -m unittest osm_rosdn_odlof.tests
37
38[testenv:build]
39basepython = python3
40deps = stdeb
41 setuptools-version-command
42commands = python3 setup.py --command-packages=stdeb.command bdist_deb
43