2019-01-22 08:45:46 +01:00
|
|
|
[tox]
|
|
|
|
envlist = test,lint,flake8
|
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython = python3
|
|
|
|
setenv =
|
|
|
|
script = compile_and_test_for_board.py
|
|
|
|
commands =
|
|
|
|
test: {[testenv:test]commands}
|
|
|
|
lint: {[testenv:lint]commands}
|
|
|
|
flake8: {[testenv:flake8]commands}
|
|
|
|
|
|
|
|
[testenv:test]
|
|
|
|
deps = pytest
|
|
|
|
commands =
|
2019-02-28 13:39:27 +01:00
|
|
|
pytest -v --doctest-modules
|
2019-01-22 08:45:46 +01:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps = pylint
|
|
|
|
commands =
|
2019-02-28 13:39:27 +01:00
|
|
|
pylint {env:script} tests
|
2019-01-22 08:45:46 +01:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
deps = flake8
|
|
|
|
commands =
|
2019-02-28 13:39:27 +01:00
|
|
|
flake8 {env:script} tests
|