forked from SUSE/suse-migration-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (44 loc) · 1.15 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
skipsdist = True
envlist =
unit_py3, check
[testenv]
install_command = {toxinidir}/pip.sh {opts} {packages}
whitelist_externals =
bash
basepython =
{check}: python3
unit_py3: python3
envdir =
{check}: {toxworkdir}/3
unit_py3: {toxworkdir}/3
passenv =
*
usedevelop = True
deps =
-r.virtualenv.dev-requirements.txt
# Unit Test run with basepython set to 3.x
[testenv:unit_py3]
skip_install = True
usedevelop = True
setenv =
PYTHONPATH={toxinidir}/test
PYTHONUNBUFFERED=yes
WITH_COVERAGE=yes
passenv =
*
deps = {[testenv]deps}
changedir=test/unit
commands =
bash -c 'cd ../../ && ./setup.py develop'
py.test --no-cov-on-fail --cov=suse_migration_services \
--cov-report=term-missing --cov-fail-under=95 --cov-config .coveragerc
# Source code quality/integrity check
[testenv:check]
deps = {[testenv]deps}
skip_install = True
usedevelop = True
commands =
flake8 --statistics -j auto --count {toxinidir}/suse_migration_services
flake8 --statistics -j auto --count {toxinidir}/test/unit
bash -c 'shellcheck -e SC1091,SC1090,SC2001,SC2174,SC1117 {toxinidir}/tools/* {toxinidir}/grub.d/* -s bash'