forked from gridsingularity/gsy-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
101 lines (90 loc) · 2.33 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tox]
mintoxversion = 2.3
envlist = check_readme,flake8,solium,covclean,py36,coverage,integrationtests
[testenv]
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH SOLC_BINARY GANACHE_BINARY BRANCH
deps =
pip-tools
coverage
commands =
pip-sync requirements/base.txt requirements/tests.txt
pip install -e .
coverage run -m py.test {posargs:tests}
[testenv:covclean]
basepython = python3.6
skip_install = true
deps = coverage
commands = coverage erase
[testenv:coverage]
basepython = python3.6
skip_install = true
deps = coverage
commands =
coverage combine
coverage report
[testenv:check_readme]
skip_install = true
deps = readme_renderer
commands = python setup.py check --restructuredtext --strict
[testenv:flake8]
basepython = python3.6
skip_install = true
deps =
-rrequirements/tests.txt
commands =
flake8
#isort --check-only --recursive --quiet --project d3a --line-width 99 src tests setup.py fabfile.py
[testenv:solium]
basepython = python3.6
skip_install = true
deps =
whitelist_externals =
solium
commands =
solium --dir src/d3a/contracts
[testenv:integrationtests]
basepython = python3.6
deps =
-rrequirements/tests.txt
commands =
pip install -e .
behave --tags=-disabled integration_tests {posargs}
[flake8]
max-line-length = 99
exclude = .tox,wiki,.cache,.d3a,.hypothesis,.pytest_cache,vagrant,requirements
[testenv:codecoverage]
basepython = python3.6
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH SOLC_BINARY GANACHE_BINARY
deps =
pip-tools
coverage
commands =
pip-sync requirements/base.txt requirements/tests.txt
pip install -e .
coverage run -m py.test {posargs:tests}
coverage combine
coverage report
[testenv:travis]
basepython = python3.6
passenv = LANG TERM LANGUAGE LC_ALL LD_LIBRARY_PATH SOLC_BINARY GANACHE_BINARY BRANCH
deps =
pip-tools
coverage
commands =
python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
pip-sync requirements/base.txt requirements/tests.txt requirements/pandapower.txt
pip install -e .
flake8
coverage run -m py.test {posargs:tests}
coverage combine
coverage report
behave --tags=-slow --tags=-disabled integration_tests
[testenv:test_dispatch_events_top_to_bottom]
basepython = python3.6
deps =
-rrequirements/tests.txt
setenv =
DISPATCH_EVENTS_BOTTOM_TO_TOP = False
commands =
pip install -e .
behave --tags=-disabled integration_tests