forked from davidhalter/jedi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (62 loc) · 1.42 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
[tox]
envlist = py27, py33, py34, py35, py36
[testenv]
deps =
pytest>=2.3.5, < 3.3
pytest-cache
# docopt for sith doctests
docopt
# coloroma for colored debug output
colorama
-rrequirements.txt
passenv = JEDI_TEST_ENVIRONMENT
setenv =
# https://github.com/tomchristie/django-rest-framework/issues/1957
# tox corrupts __pycache__, solution from here:
PYTHONDONTWRITEBYTECODE=1
# To test Jedi in different versions than the same Python version, set a
# different test environment.
env27: JEDI_TEST_ENVIRONMENT=27
env33: JEDI_TEST_ENVIRONMENT=33
env34: JEDI_TEST_ENVIRONMENT=34
env35: JEDI_TEST_ENVIRONMENT=35
env36: JEDI_TEST_ENVIRONMENT=36
env37: JEDI_TEST_ENVIRONMENT=37
commands =
py.test {posargs:jedi test}
[testenv:py27]
deps =
# for testing the typing module
typing
# numpydoc for typing scipy stack
numpydoc
{[testenv]deps}
[testenv:py33]
deps =
typing
{[testenv]deps}
[testenv:py34]
deps =
typing
numpydoc
{[testenv]deps}
[testenv:py35]
deps =
numpydoc
{[testenv]deps}
[testenv:py36]
deps =
numpydoc
{[testenv]deps}
[testenv:cov]
deps =
coverage
numpydoc
{[testenv]deps}
commands =
coverage run --source jedi -m py.test
coverage report
[testenv:sith]
commands =
{envpython} -c "import os; a='{envtmpdir}'; os.path.exists(a) or os.makedirs(a)"
{envpython} sith.py --record {envtmpdir}/record.json random {posargs:jedi}