forked from tobgu/pyrsistent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
55 lines (48 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
# 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 = py26,py27,py34,py35,memorytest27,memorytest34,doctest27
[testenv]
deps = pytest
hypothesis<=2.0.0
commands = py.test
changedir = tests
# 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-pypy]
# Since the C extension is never used for the PyPy build this will produce a coverage
# report for all python code executed by the tests
basepython = pypy
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = pytest
hypothesis<=2.0.0
pytest-cov
coveralls
commands =
py.test --cov=pyrsistent
coveralls
[testenv:memorytest34]
basepython = python3.4
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