blob: 65a62e5fdcdb4248a4001a339556e43d847e81c8 [file] [log] [blame]
tiernob3cda2e2018-10-30 17:26:59 +00001# 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
tiernoc0e42e22018-05-11 11:36:10 +020016[tox]
tierno3bedc9b2019-11-27 15:46:57 +000017envlist = flake8, unittest
tiernoc0e42e22018-05-11 11:36:10 +020018toxworkdir={homedir}/.tox
19
20[testenv]
tiernob3cda2e2018-10-30 17:26:59 +000021basepython = 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
tiernoc0e42e22018-05-11 11:36:10 +020025
26[testenv:flake8]
lloretgalleg1a3a4c92020-06-30 13:46:28 +000027basepython = python3.6
tiernoc0e42e22018-05-11 11:36:10 +020028deps = flake8
tiernob3cda2e2018-10-30 17:26:59 +000029commands = flake8 osm_lcm --max-line-length 120 \
lloretgalleg62b2ee42020-06-30 11:26:48 +000030 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp,frontend_grpc.py,frontend_pb2.py \
31 --ignore W291,W293,E226,W504
tiernoc0e42e22018-05-11 11:36:10 +020032
tierno51d065c2019-08-26 16:48:23 +000033[testenv:unittest]
34basepython = python3
35deps = asynctest
36commands = python3 -m unittest osm_lcm.tests.test_ns
37
tiernoc0e42e22018-05-11 11:36:10 +020038[testenv:build]
39basepython = python3
40deps = stdeb
41 setuptools-version-command
42commands = python3 setup.py --command-packages=stdeb.command bdist_deb
tiernob3cda2e2018-10-30 17:26:59 +000043