forked from EricssonResearch/calvin-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (41 loc) · 2.6 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
[tox]
envlist = py27
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = PYTHONPATH=calvin
passenv = CALVIN_TEST_IP CALVIN_TESTING_PROXY_STORAGE
[testenv:py27]
# Ignore errors to run all the commands, i.e. tests
ignore_errors=True
setenv = CALVIN_GLOBAL_DHT_NETWORK_FILTER = "{env:PWD:}{env:USER:}{env:USERNAME:}{env:CD:}{env:HOME:}{env:HOMEPATH:}{env:RANDOM:}{env:TERM_SESSION_ID:}"
commands = py.test -p no:twisted -v -m "essential or unittest" {posargs}
# Generate this list with git grep -l "pytest.inlineCallbacks" | tr '\n' ' '
py.test -v calvin/runtime/north/tests/test_calvin_network.py calvin/runtime/north/tests/test_resource_monitor.py calvin/runtime/north/tests/test_storage.py calvin/runtime/south/plugins/async/twistedimpl/tests/test_server_connection.py calvin/runtime/south/plugins/storage/twistedimpl/dht/tests/test_dht_server.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_dht_server_evil.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_dht_server_nice.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_dht_server_nice2.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_dht_server_nice3.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_dht_server_nice4.py calvin/runtime/south/plugins/storage/twistedimpl/securedht/tests/test_secdht_server.py calvin/tests/helpers_twisted.py calvin/tests/test_all_storage.py
[testenv:pypy]
setenv = CALVIN_GLOBAL_DHT_NETWORK_FILTER = "{env:PWD:}{env:USER:}{env:USERNAME:}{env:CD:}{env:HOME:}{env:HOMEPATH:}{env:RANDOM:}{env:TERM_SESSION_ID:}"
commands = py.test -v -m "essential or unittest" {posargs}
[testenv:py33]
setenv = CALVIN_GLOBAL_DHT_NETWORK_FILTER = "{env:PWD:}{env:USER:}{env:USERNAME:}{env:CD:}{env:HOME:}{env:HOMEPATH:}{env:RANDOM:}{env:TERM_SESSION_ID:}"
commands = py.test -v -m "essential or unittest" {posargs}
[testenv:py34]
setenv = CALVIN_GLOBAL_DHT_NETWORK_FILTER = "{env:PWD:}{env:USER:}{env:USERNAME:}{env:CD:}{env:HOME:}{env:HOMEPATH:}{env:RANDOM:}{env:TERM_SESSION_ID:}"
commands = py.test -v -m "essential or unittest" {posargs}
[testenv:pep8]
deps = flake8
commands = flake8 calvin
#--ignore=E501
[testenv:pylint-errors]
deps = pylint
commands = pylint -f colorized -E calvin
[testenv:pylint-warnings]
deps = pylint
commands = pylint -f colorized -d all -e W -r n calvin
[testenv:pylint-full]
deps = pylint
commands = pylint -f colorized --disable=all -e R,E,W calvin
[flake8]
ignore = E222
max-line-length = 120
exclude = .svn,CVS,.bzr,.hg,.git,__pycache,tests,calvin/csparser
max-complexity = 10