forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
68 lines (62 loc) · 1.54 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
[tox]
minversion = 3.2.1
envlist = lint,py27,py37,py36,py35,py34,docs
skip_missing_interpreters = true
# workaround for https://github.com/tox-dev/tox/issues/149
# require =
# tox-pip-extensions>=1.4.2
# tox_pip_extensions_ext_venv_update = true
# ^ disabled due to https://github.com/Yelp/venv-update/pull/215
[testenv:docs]
basepython=python
changedir=docs
deps =
-rdocs/requirements-rtd.txt
commands=
bash -c 'cd {toxinidir}/docs && make html'
[testenv]
usedevelop = True
# avoid using deps= due to https://github.com/tox-dev/tox/issues/149
# hide deps from stdout https://github.com/tox-dev/tox/issues/601
list_dependencies_command=echo
deps =
-rrequirements.txt
-rrequirements-dev.txt
extras =
cli
opt
sitepackages=False
commands=
bash -c 'find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf'
python -m pip check
python -m pytest {posargs}
setenv =
PIP_LOG={envdir}/pip.log
PIP_DISABLE_PIP_VERSION_CHECK=1
# Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
passenv =
CI
CI_JIRA_*
PIP_*
TRAVIS
TRAVIS_*
XDG_CACHE_HOME
envars =
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_USER=no
whitelist_externals =
bash
echo
find
grep
rm
xargs
[testenv:lint]
commands=
bash -c "npm install && npm run spell"
python -m pre_commit run --all
[testenv:maintenance]
# this will obliterate your jira instance, used to clean the CI server
commands=
python examples/maintenance.py