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] |
| 18 | envlist=py27 |
| 19 | |
| 20 | [testenv] |
| 21 | passenv = |
| 22 | TRAVIS |
| 23 | PYTHON |
| 24 | PYTHON_VERSION |
| 25 | PYTHON_ARCH |
| 26 | setenv = |
| 27 | INSTALL_CTX=1 |
| 28 | deps = |
| 29 | -rrequirements.txt |
| 30 | -rtests/requirements.txt |
| 31 | basepython = |
| 32 | py27: python2.7 |
| 33 | |
| 34 | [testenv:py27] |
Lianhao Lu | 2394a98 | 2018-03-20 09:26:54 +0800 | [diff] [blame] | 35 | commands = |
Lianhao Lu | 89649fc | 2018-07-27 13:28:48 +0800 | [diff] [blame] | 36 | coverage run --module pytest --junitxml xunit-results.xml tests/ |
Lianhao Lu | 2394a98 | 2018-03-20 09:26:54 +0800 | [diff] [blame] | 37 | coverage xml --omit=".tox/py27/*","tests/*" |
| 38 | coverage report --omit=".tox/py27/*","tests/*" |
Lianhao Lu | 7676ca5 | 2018-03-22 20:39:04 +0800 | [diff] [blame] | 39 | #pytest tests --cov-report term-missing --cov vnfsdk_pkgtools |
Krzysztof Frukacz | 8418568 | 2017-01-31 08:03:29 +0100 | [diff] [blame] | 40 | |