blob: 27bc18428453dba251b8634a62b265b42e1e8868 [file] [log] [blame]
tierno0c01ffa2018-11-19 14:39:33 +01001# Copyright 2018 Telefonica S.A.
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
tiernoc94c3df2018-02-09 15:38:54 +010016[tox]
tierno0c01ffa2018-11-19 14:39:33 +010017envlist = py3
tiernoc94c3df2018-02-09 15:38:54 +010018toxworkdir={homedir}/.tox
19
20[testenv]
tierno0c01ffa2018-11-19 14:39:33 +010021basepython = python3
22install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
23deps = -r{toxinidir}/test-requirements.txt
24commands=python3 -m unittest discover -v
tiernoc94c3df2018-02-09 15:38:54 +010025
26[testenv:flake8]
27basepython = python3
28deps = flake8
tiernob24258a2018-10-04 18:39:49 +020029commands = flake8 osm_nbi/ setup.py --max-line-length 120 \
tiernofc5089c2018-10-31 09:28:11 +010030 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp,osm_im --ignore W291,W293,E226,E402,W504
tiernoc94c3df2018-02-09 15:38:54 +010031
32[testenv:build]
33basepython = python3
34deps = stdeb
35 setuptools-version-command
36commands = python3 setup.py --command-packages=stdeb.command bdist_deb
tierno0c01ffa2018-11-19 14:39:33 +010037