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