|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
[tox] |
|
|
|
|
envlist = py36 |
|
|
|
|
envlist = python3.6, python3.8, python3.9 |
|
|
|
|
|
|
|
|
|
[testenv] |
|
|
|
|
deps = |
|
|
|
@ -40,6 +40,55 @@ commands = |
|
|
|
|
--disable-pytest-warnings \ |
|
|
|
|
{posargs} |
|
|
|
|
|
|
|
|
|
[testenv:py38] |
|
|
|
|
basepython = python3.8 |
|
|
|
|
setenv = |
|
|
|
|
COVERAGE_FILE = .coverage.{envname} |
|
|
|
|
deps = |
|
|
|
|
mypy==0.782 |
|
|
|
|
pytest |
|
|
|
|
pytest-mock |
|
|
|
|
pytest-cov |
|
|
|
|
|
|
|
|
|
passenv = MYTHRIL_DIR INFURA_ID |
|
|
|
|
whitelist_externals = mkdir |
|
|
|
|
commands = |
|
|
|
|
mypy --follow-imports=silent --warn-unused-ignores --ignore-missing-imports --no-strict-optional mythril |
|
|
|
|
mkdir -p {toxinidir}/tests/testdata/outputs_current/ |
|
|
|
|
mkdir -p {toxinidir}/tests/testdata/outputs_current_laser_result/ |
|
|
|
|
py.test -v \ |
|
|
|
|
--cov=mythril \ |
|
|
|
|
--cov-config=tox.ini \ |
|
|
|
|
--cov-report=xml:{toxworkdir}/output/{envname}/coverage.xml \ |
|
|
|
|
--cov-report=html:{toxworkdir}/output/{envname}/covhtml \ |
|
|
|
|
--junitxml={toxworkdir}/output/{envname}/junit.xml \ |
|
|
|
|
--disable-pytest-warnings \ |
|
|
|
|
{posargs} |
|
|
|
|
|
|
|
|
|
[testenv:py39] |
|
|
|
|
basepython = python3.9 |
|
|
|
|
setenv = |
|
|
|
|
COVERAGE_FILE = .coverage.{envname} |
|
|
|
|
deps = |
|
|
|
|
mypy==0.782 |
|
|
|
|
pytest |
|
|
|
|
pytest-mock |
|
|
|
|
pytest-cov |
|
|
|
|
|
|
|
|
|
passenv = MYTHRIL_DIR INFURA_ID |
|
|
|
|
whitelist_externals = mkdir |
|
|
|
|
commands = |
|
|
|
|
mypy --follow-imports=silent --warn-unused-ignores --ignore-missing-imports --no-strict-optional mythril |
|
|
|
|
mkdir -p {toxinidir}/tests/testdata/outputs_current/ |
|
|
|
|
mkdir -p {toxinidir}/tests/testdata/outputs_current_laser_result/ |
|
|
|
|
py.test -v \ |
|
|
|
|
--cov=mythril \ |
|
|
|
|
--cov-config=tox.ini \ |
|
|
|
|
--cov-report=xml:{toxworkdir}/output/{envname}/coverage.xml \ |
|
|
|
|
--cov-report=html:{toxworkdir}/output/{envname}/covhtml \ |
|
|
|
|
--junitxml={toxworkdir}/output/{envname}/junit.xml \ |
|
|
|
|
--disable-pytest-warnings \ |
|
|
|
|
{posargs} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[coverage:report] |
|
|
|
|