blob: a131fea44042cecfaa66103f09f9928ffaa26b0c [file] [log] [blame]
sousaedu51cc9c42021-04-09 18:03:02 +02001# 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
16[tox]
17envlist = flake8
18toxworkdir={toxinidir}/../.tox
19
20[testenv]
21basepython = python3
22install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
23
24[testenv:flake8]
25basepython = python3
26deps = flake8
27commands = flake8 osm_roclient --max-line-length 120 \
28 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226,W504
29
30[testenv:unittest]
31basepython = python3
32commands = python3 -m unittest osm_roclient.tests
33
34[testenv:build]
35basepython = python3
36deps = stdeb
37 setuptools-version-command
38commands = python3 setup.py --command-packages=stdeb.command bdist_deb
39