blob: 4f7d8161a8cf4cfe9b7575afaee5f1a79bc6bd1d [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]
garciadeblas09fa3d42019-10-08 18:30:46 +020018envlist = py27,py35,flake8,pyflakes
Felipe Vicensb7463a42019-10-25 16:42:41 +020019toxworkdir={toxinidir}/.tox
Mike Marchettieeb2c002017-05-25 11:34:25 -040020
21[testenv]
Felipe Vicensb7463a42019-10-25 16:42:41 +020022deps = -r{toxinidir}/test-requirements.txt
23commands=nosetests
24install_command = python -m pip install -r test-requirements.txt -U {opts} {packages}
Mike Marchettieeb2c002017-05-25 11:34:25 -040025
26[testenv:flake8]
Felipe Vicensb7463a42019-10-25 16:42:41 +020027basepython = python3
Mike Marchettieeb2c002017-05-25 11:34:25 -040028deps = flake8
29commands =
30 flake8 setup.py
31
peustermbe960962018-06-14 21:32:55 +020032[testenv:pyflakes]
33basepython = python3
34deps = pyflakes
35commands =
36 pyflakes osmclient
37
Mike Marchettieeb2c002017-05-25 11:34:25 -040038[testenv:build]
39basepython = python
40deps = stdeb
41 setuptools-version-command
42commands = python setup.py --command-packages=stdeb.command bdist_deb
garciadeblas09fa3d42019-10-08 18:30:46 +020043
44[testenv:build3]
45basepython = python3
46deps = stdeb
47 setuptools-version-command
48commands = python3 setup.py --command-packages=stdeb.command bdist_deb
49