Krzysztof Frukacz | 8418568 | 2017-01-31 08:03:29 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017 GigaSpaces Technologies Ltd. All rights reserved. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 | # not use this file except in compliance with the License. You may obtain |
| 6 | # a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | # License for the specific language governing permissions and limitations |
| 14 | # under the License. |
| 15 | # |
| 16 | |
| 17 | [tox] |
Lianhao Lu | fb75c2f | 2019-11-29 14:49:50 +0800 | [diff] [blame] | 18 | envlist=py27,py3,pep8 |
Krzysztof Frukacz | 8418568 | 2017-01-31 08:03:29 +0100 | [diff] [blame] | 19 | |
| 20 | [testenv] |
Lianhao Lu | fb75c2f | 2019-11-29 14:49:50 +0800 | [diff] [blame] | 21 | basepython = python3 |
Krzysztof Frukacz | 8418568 | 2017-01-31 08:03:29 +0100 | [diff] [blame] | 22 | passenv = |
| 23 | TRAVIS |
| 24 | PYTHON |
| 25 | PYTHON_VERSION |
| 26 | PYTHON_ARCH |
| 27 | setenv = |
| 28 | INSTALL_CTX=1 |
| 29 | deps = |
| 30 | -rrequirements.txt |
| 31 | -rtests/requirements.txt |
Lianhao Lu | 2394a98 | 2018-03-20 09:26:54 +0800 | [diff] [blame] | 32 | commands = |
Lianhao Lu | 1ee29e0 | 2019-11-01 16:01:34 +0800 | [diff] [blame] | 33 | coverage run --module pytest --junitxml xunit-results.xml tests/ |
| 34 | coverage xml --omit=".tox/*,tests/*" |
| 35 | coverage report --omit=".tox/*,tests/*" |
| 36 | #pytest tests --cov-report term-missing --cov vnfsdk_pkgtools |
Lianhao Lu | 8767846 | 2019-11-29 13:13:37 +0800 | [diff] [blame] | 37 | |
| 38 | [testenv:py27] |
| 39 | basepython = python2 |
| 40 | |
| 41 | [testenv:py3] |
| 42 | basepython = python3 |
Lianhao Lu | fb75c2f | 2019-11-29 14:49:50 +0800 | [diff] [blame] | 43 | |
| 44 | [testenv:pep8] |
| 45 | deps = flake8<3.8,>=3.7.0 |
| 46 | commands = flake8 {toxinidir}/vnfsdk_pkgtools {toxinidir}/tests |
| 47 | |
| 48 | [flake8] |
| 49 | ignore = E501 |