forked from aalmazan/crossbar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
47 lines (43 loc) · 1.27 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
[tox]
envlist = flake8, {py27,pypy,py33,py34,py35}-{twtrunk,twcurrent}-{abtrunk,abcurrent}
[flake8]
exclude = crossbar/worker/test/examples/syntaxerror.py
[testenv:flake8]
skip_install = True
deps =
flake8
commands =
flake8 --ignore=E501,N801,N802,N803,N805,N806 crossbar
basepython = python2.7
[testenv]
whitelist_externals = sh
deps =
pypy: cryptography<1.0
pypy: pynacl<1.0
mock
coverage
abcurrent: autobahn
abtrunk: https://github.com/crossbario/txaio/archive/master.zip
abtrunk: https://github.com/tavendo/AutobahnPython/archive/master.zip
twcurrent: Twisted
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
commands =
sh -c "which python"
sh -c "which coverage"
python -V
pip --version
python -c "import setuptools; print('setuptools-%s' % setuptools.__version__)"
coverage --version
{envbindir}/trial --version
#{py27,py33,py34,py35,pypy}: pip install .
{py27,py33,py34,py35,pypy}: pip install --ignore-installed --require-hashes -r requirements.txt
coverage erase
coverage run {envbindir}/trial {posargs:crossbar}
coverage combine
coverage report
coverage html
setenv =
COVERAGE_PROCESS_START = .coveragerc
#LMDB_FORCE_CFFI=1
#SODIUM_INSTALL=bundled
{py27,py33,py34,py35}: CB_FULLTESTS = 1