-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
74 lines (56 loc) · 1.17 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
envlist =
checkmetadata,
pylint,
py{27, 36, 37, 38, 39},
docs
[testenv:docs]
deps =
recommonmark
sphinx
sphinx_rtd_theme
passenv =
BUILDDIR
allowlist_externals =
touch
commands =
python -m sphinx -n -a -E -W doc "{env:BUILDDIR:build}/docs"
# Disable jekyll on Github pages.
touch {env:BUILDDIR:build}/docs/.nojekyll
[testenv:checkmetadata]
deps =
check-manifest
twine
commands =
check-manifest -v
twine check --strict {distdir}/*
[testenv:pylint]
deps =
pylint
py27: mock
commands =
pylint setup.py src/ tests/
[testenv:py{27, 36, 37, 38, 39}]
commands_pre =
{toxinidir}/scripts/ensure-sqlserver.sh ctds-unittest-sqlserver
# develop install is required in order to properly generate/collect code coverage
usedevelop = true
deps =
coverage
pytest
pytest-cov
py27: mock
setenv =
HOSTNAME = ctds-unittest-sqlserver
CTDS_COVER=1
CTDS_STRICT=1
passenv = CTDS_* PYTEST_* TDS*
commands =
{toxinidir}/scripts/ctds-coverage.sh {posargs:-vv}
[gh-actions]
python =
2.7: py27, lint
3.6: py36
3.7: py37
3.8: py38
3.9: py39, docs, lint, checkmetadata