blob: d56ee5c50d3b7b9421e313c2a365765fba83121f [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]
tierno1bfe4e22019-09-02 16:03:25 +000017envlist = flake8, unittest
Felipe Vicens5f1a6d32019-10-16 20:13:53 +020018toxworkdir={toxinidir}/.tox
tiernoc94c3df2018-02-09 15:38:54 +010019
20[testenv]
tierno1bfe4e22019-09-02 16:03:25 +000021usedevelop = True
tierno0c01ffa2018-11-19 14:39:33 +010022basepython = python3
tierno1bfe4e22019-09-02 16:03:25 +000023install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
tiernoc94c3df2018-02-09 15:38:54 +010024
25[testenv:flake8]
26basepython = python3
27deps = flake8
tiernob24258a2018-10-04 18:39:49 +020028commands = flake8 osm_nbi/ setup.py --max-line-length 120 \
tierno1bfe4e22019-09-02 16:03:25 +000029 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp,osm_im,.temp-tox --ignore W291,W293,E226,E402,W504
tiernoc94c3df2018-02-09 15:38:54 +010030
31[testenv:build]
32basepython = python3
33deps = stdeb
34 setuptools-version-command
35commands = python3 setup.py --command-packages=stdeb.command bdist_deb
tierno0c01ffa2018-11-19 14:39:33 +010036
tierno1bfe4e22019-09-02 16:03:25 +000037[testenv:unittest]
38basepython = python3
preethika.p0952a482019-09-20 16:37:50 +053039deps = asynctest
40 aioresponses
tierno1bfe4e22019-09-02 16:03:25 +000041commands = python3 -m unittest discover {toxinidir}/osm_nbi/tests -v
42