blob: fcbb647c7146e203f5d25fc911905e2c5ffd5387 [file] [log] [blame]
efiacor9b532682019-11-06 11:08:54 +00001# ============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]
20envlist = py36,py37,flake8
21skip_missing_interpreters = true
22
23[testenv]
24deps=
25 -rrequirements.txt
26 pytest
27 coverage
28 pytest-cov
29setenv =
30 PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests
31commands=
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]
35basepython = python3
36skip_install = true
37deps = flake8
38commands = flake8 pmsh_service tests
39
40[flake8]
41max-line-length=100