File: tox.ini

package info (click to toggle)
magic-wormhole-mailbox-server 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 480 kB
  • sloc: python: 4,337; sql: 133; makefile: 13
file content (42 lines) | stat: -rw-r--r-- 1,319 bytes parent folder | download
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
# 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,pypy}
skip_missing_interpreters = True
minversion = 2.4.0

[testenv]
usedevelop = True
extras = dev
deps =
    pyflakes >= 1.2.3
commands =
    pyflakes setup.py src
    python -m twisted.trial {posargs:wormhole_mailbox_server}


# on windows, trial is installed as venv/bin/trial.py, not .exe, but (at
# least appveyor) adds .PY to $PATHEXT. So "trial wormhole" might work on
# windows, and certainly does on unix. But to get "coverage run" to work, we
# need a script name (since "python -m twisted.scripts.trial" doesn't have a
# 'if __name__ == "__main__": run()' -style clause), and the script name will
# vary on the platform. So we added a small class (wormhole.test.run_trial)
# that does the right import for us.

[testenv:coverage]
deps =
    pyflakes >= 1.2.3
    coverage
commands =
    pyflakes setup.py src
    coverage run --branch -m twisted.trial {posargs:wormhole_mailbox_server}
    coverage xml

[testenv:flake8]
deps =
     flake8
commands =
     flake8 *.py src --count --select=E901,E999,F821,F822,F823 --statistics