efiacor | 9b53268 | 2019-11-06 11:08:54 +0000 | [diff] [blame^] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2019 Nordix Foundation. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain 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, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | [tox] |
| 20 | envlist = py36,py37,flake8 |
| 21 | skip_missing_interpreters = true |
| 22 | |
| 23 | [testenv] |
| 24 | deps= |
| 25 | -rrequirements.txt |
| 26 | pytest |
| 27 | coverage |
| 28 | pytest-cov |
| 29 | setenv = |
| 30 | PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests |
| 31 | commands= |
| 32 | pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term tests --verbose --cov-fail-under=0 |
| 33 | |
| 34 | [testenv:flake8] |
| 35 | basepython = python3 |
| 36 | skip_install = true |
| 37 | deps = flake8 |
| 38 | commands = flake8 pmsh_service tests |
| 39 | |
| 40 | [flake8] |
| 41 | max-line-length=100 |