forked from tobgu/pyrsistent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (47 loc) · 1.41 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 (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27,py34,py35,py36,py37,memorytest27,memorytest36,doctest27,pypy,pypy3,coverage-py36
[testenv]
commands = python {toxinidir}/setup.py test
# Specifying the following tests like this is very non-DRY but I have no better solution right now.
[testenv:memorytest27]
basepython = python2.7
deps = pytest
memory_profiler
psutil
changedir = .
commands = python tests/memory_profiling.py
[testenv:coverage-py36]
# Skip using C-extension to get coverage metrics on Python code.
basepython = python3.6
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv =
PYRSISTENT_NO_C_EXTENSION = 1
deps = pytest
hypothesis<=2.0.0
pytest-cov
coveralls
changedir = tests
commands =
py.test --cov=pyrsistent
coveralls
[testenv:memorytest36]
basepython = python3.6
deps = pytest
memory_profiler
psutil
changedir = .
commands = python tests/memory_profiling.py
[testenv:doctest27]
# Need to disable the random hashing or all docs printing a map with more than
# one item in it will be flaky.
setenv = PYTHONHASHSEED=0
basepython = python2.7
deps = pytest
changedir = .
commands = py.test --doctest-modules pyrsistent
[pytest]
norecursedirs = build