summaryrefslogtreecommitdiff
path: root/tox.ini
blob: a519439a1941de6bc8dfbc17efd031f06078d439 (plain)
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
[tox]
envlist = static_analysis,
          py26,
          py27,
          py33,
          py34,
          pypy

skip_missing_interpreters = true

[testenv]
whitelist_externals = /bin/bash /bin/mv
setenv = PYTHONIOENCODING=UTF8
deps = pytest-flakes
       pytest-random
       pytest-xdist
       pytest-pep8
       pytest-cov
       pytest
       mock
commands = {envbindir}/py.test \
               --random --strict --pep8 --flakes \
               --junit-xml=results.{envname}.xml --verbose \
               --cov blessed blessed/tests {posargs}
           /bin/mv {toxinidir}/.coverage {toxinidir}/.coverage.{envname}

[testenv:static_analysis]
deps = prospector[with_everything]
commands = prospector \
               --die-on-tool-error \
               --test-warnings \
               --doc-warnings \
               {toxinidir}

[pytest]
# py.test fixtures conflict with pyflakes
flakes-ignore =
       UnusedImport
       RedefinedWhileUnused