forked from texasaggie97-zz/hover-dns-updater
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
52 lines (44 loc) · 1.49 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 (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
#envlist = py{3,34,35,36,py3}-test, flake8, docs, pkg
envlist = flake8
skip_missing_interpreters=True
skipsdist = True
[testenv:flake8]
description = Run static analysis
commands = flake8 {posargs}
deps =
-rrequirements_test.txt
[testenv]
description = Run tests
commands =
test: pytest --junit-xml=junit/{envname}.xml --junit-prefix={envname} {posargs: -m "not integration"}
deps =
-rrequirements_test.txt
[testenv:docs]
description = Generate documentation
changedir = docs
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html {posargs}
deps =
-rrequirements_test.txt
[testenv:pkg]
description = Verify the package
commands =
python setup.py check -m -r -s
check-manifest --ignore tox*.ini,tests,*.in,.*,.*/*,CONTRIBUTING.rst,MAINTAINING.rst,docs,docs/*,Jenkinsfile
deps =
-rrequirements_test.txt
[flake8]
show_source = true
# We recommend setting your editor's visual guide to 79 but allow overflow to
# 120 for readability in certain cases
max_line_length = 120
exclude = build,docs,.tox,__pycache__
# H903: Windows style line endings not allowed in code
ignore = H903
[pytest]
addopts = --cov nixnet --cov nixnet_examples --cov-report term --cov-report xml --verbose --doctest-modules --ignore=setup.py
[travis]