Commit 358efff9 authored by Tomasz Dołbniak's avatar Tomasz Dołbniak Committed by Scott Cyphers

ENV variable for tox backend selection (#3074)

parent 7ccb6cf1
...@@ -13,6 +13,7 @@ setenv = ...@@ -13,6 +13,7 @@ setenv =
LD_LIBRARY_PATH = {env:LD_LIBRARY_PATH:{homedir}/ngraph_dist/lib} LD_LIBRARY_PATH = {env:LD_LIBRARY_PATH:{homedir}/ngraph_dist/lib}
DYLD_LIBRARY_PATH = {env:DYLD_LIBRARY_PATH:{homedir}/ngraph_dist/lib} DYLD_LIBRARY_PATH = {env:DYLD_LIBRARY_PATH:{homedir}/ngraph_dist/lib}
PYBIND_HEADERS_PATH = {env:PYBIND_HEADERS_PATH:} PYBIND_HEADERS_PATH = {env:PYBIND_HEADERS_PATH:}
NGRAPH_BACKEND = {env:NGRAPH_BACKEND:"INTERPRETER"}
[testenv:py3] [testenv:py3]
deps = deps =
...@@ -25,14 +26,14 @@ commands= ...@@ -25,14 +26,14 @@ commands=
flake8 {posargs:pyngraph/ ngraph/ examples/ setup.py} flake8 {posargs:pyngraph/ ngraph/ examples/ setup.py}
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests
mypy --config-file=tox.ini {posargs:pyngraph/ ngraph/ examples/} # Use MyPy in Python 3 only mypy --config-file=tox.ini {posargs:pyngraph/ ngraph/ examples/} # Use MyPy in Python 3 only
pytest {posargs:test/} pytest --backend={env:NGRAPH_BACKEND} {posargs:test/}
[testenv:py27] [testenv:py27]
commands= commands=
{envbindir}/python setup.py develop {envbindir}/python setup.py develop
flake8 {posargs:pyngraph/ ngraph/ examples/} flake8 {posargs:pyngraph/ ngraph/ examples/}
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 test/ # ignore lack of docs in tests
pytest {posargs:test/} pytest --backend={env:NGRAPH_BACKEND} {posargs:test/}
[testenv:devenv] [testenv:devenv]
envdir = devenv envdir = devenv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment