blob: d0d97f862514cc55174c97123967f4fa2b702fb4 (
plain)
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
52
53
54
55
56
57
58
|
[tox]
envlist = cov-init, py36, py37, noextras, docs, packaging, cov-report
[testenv]
passenv = CI TRAVIS TRAVIS_* CODECOV
whitelist_externals =
bash
make
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cli_helpers
COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov-report= --cov=cli_helpers
coverage report
bash -c 'if [ -n "$CODECOV" ]; then {envbindir}/coverage xml && {envbindir}/codecov; fi'
deps = -r{toxinidir}/requirements-dev.txt
usedevelop = True
[testenv:noextras]
commands =
pip uninstall -y Pygments
{[testenv]commands}
[testenv:docs]
changedir = docs
deps = sphinx
whitelist_externals = make
commands =
make clean
make html
make linkcheck
[testenv:packaging]
deps =
check-manifest
readme_renderer[md]
-r{toxinidir}/requirements-dev.txt
commands =
check-manifest --ignore .travis/*
./setup.py sdist
twine check dist/*
./setup.py check -m -s
[testenv:cov-init]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage erase
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report
|