blob: e3bc42cad9d113c193600e00f202886ef42978e3 [file] [log] [blame]
tierno87858ca2018-10-08 16:30:15 +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
tierno5c012612018-04-19 16:01:59 +020016[tox]
Eduardo Sousa222a9d42018-04-26 13:08:05 +010017envlist = py27,py3,flake8,pytest
tierno5c012612018-04-19 16:01:59 +020018toxworkdir={homedir}/.tox
19
20[testenv]
Eduardo Sousa222a9d42018-04-26 13:08:05 +010021basepython = python3
Eduardo Sousaacbbdf22018-05-03 15:47:41 +010022deps = pytest pytest-asyncio
Eduardo Sousa222a9d42018-04-26 13:08:05 +010023commands = pytest
tierno5c012612018-04-19 16:01:59 +020024
25[testenv:flake8]
26basepython = python3
27deps = flake8
28commands =
tiernob20a9022018-05-22 12:07:05 +020029 flake8 osm_common/ setup.py --max-line-length 120 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226
tierno5c012612018-04-19 16:01:59 +020030
31[testenv:build]
32basepython = python3
33deps = stdeb
34 setuptools-version-command
35commands = python3 setup.py --command-packages=stdeb.command bdist_deb