blob: 6fb9d372d7dd9c0bf3739b4560740b1bccf940a9 [file] [log] [blame]
tierno7d782ef2019-10-04 12:56:31 +00001##
2# Copyright 2017 Telefonica Digital Spain S.L.U.
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
17[tox]
18envlist = py3
19toxworkdir={homedir}/.tox
20
21[testenv]
22basepython = python3
23install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
24# deps = -r{toxinidir}/test-requirements.txt
25commands=python3 -m unittest discover -v
26
27[testenv:flake8]
28basepython = python3
29deps = flake8
30commands = flake8 osm_rovim_opennebula --max-line-length 120 \
31 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226,W504
32
33[testenv:unittest]
34basepython = python3
35commands = python3 -m unittest osm_rovim_opennebula.tests
36
37[testenv:build]
38basepython = python3
39deps = stdeb
40 setuptools-version-command
41commands = python3 setup.py --command-packages=stdeb.command bdist_deb
42