forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (50 loc) · 1.11 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
[tox]
minversion = 2.3.1
envlist = lint,py27,py37,py36,py35,py34,docs
skip_missing_interpreters = true
[testenv:docs]
basepython=python
changedir=docs
deps =
-rrequirements.txt
-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
extras =
cli
opt
sitepackages=False
commands=
pip install -q -rrequirements.txt -rrequirements-dev.txt
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
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=
pip install -q -rrequirements.txt -rrequirements-dev.txt
bash -c "npm install && npm run spell"
python -m pre_commit run --all