blob: b02cab2307ad5885ac463777a448706d6d47e8b2 [file] [log] [blame]
Felipe Vicensb7463a42019-10-25 16:42:41 +02001# Copyright 2019 ETSI OSM
2#
3# All Rights Reserved.
garciadeblas09fa3d42019-10-08 18:30:46 +02004#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may
6# not use this file except in compliance with the License. You may obtain
7# a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations
15# under the License.
16#
Mike Marchettieeb2c002017-05-25 11:34:25 -040017[tox]
garciaaleda8d1cb2020-10-21 15:06:16 -030018envlist = py36,flakes
Felipe Vicensb7463a42019-10-25 16:42:41 +020019toxworkdir={toxinidir}/.tox
Mike Marchettieeb2c002017-05-25 11:34:25 -040020
21[testenv]
garciaaleda8d1cb2020-10-21 15:06:16 -030022deps = -r{toxinidir}/requirements.txt
23 -r{toxinidir}/test-requirements.txt
24install_command = python3 -m pip install -U {opts} {packages}
Felipe Vicensb7463a42019-10-25 16:42:41 +020025commands=nosetests
Mike Marchettieeb2c002017-05-25 11:34:25 -040026
garciaaleda8d1cb2020-10-21 15:06:16 -030027[testenv:flakes]
Felipe Vicensb7463a42019-10-25 16:42:41 +020028basepython = python3
Mike Marchettieeb2c002017-05-25 11:34:25 -040029deps = flake8
garciaaleda8d1cb2020-10-21 15:06:16 -030030 pyflakes
31 -r{toxinidir}/requirements.txt
32 -r{toxinidir}/test-requirements.txt
33install_command = python3 -m pip install -U {opts} {packages}
Mike Marchettieeb2c002017-05-25 11:34:25 -040034commands =
35 flake8 setup.py
peustermbe960962018-06-14 21:32:55 +020036 pyflakes osmclient
37
Mike Marchettieeb2c002017-05-25 11:34:25 -040038[testenv:build]
39basepython = python
40deps = stdeb
41 setuptools-version-command
garciaaleda8d1cb2020-10-21 15:06:16 -030042 -r{toxinidir}/requirements.txt
43install_command = python2 -m pip install -U {opts} {packages}
44commands = python2 setup.py --command-packages=stdeb.command bdist_deb
garciadeblas09fa3d42019-10-08 18:30:46 +020045
46[testenv:build3]
47basepython = python3
48deps = stdeb
49 setuptools-version-command
garciaaleda8d1cb2020-10-21 15:06:16 -030050 -r{toxinidir}/requirements.txt
51install_command = python3 -m pip install -U {opts} {packages}
garciadeblas09fa3d42019-10-08 18:30:46 +020052commands = python3 setup.py --command-packages=stdeb.command bdist_deb
53