mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tools/compile_test_one_board: add tox.ini configuration file
tox.ini configures 3 checks on the python script: doctest (via pytest), pylint and flake8
This commit is contained in:
parent
26a64694dd
commit
148f715689
2
dist/tools/compile_and_test_for_board/.gitignore
vendored
Normal file
2
dist/tools/compile_and_test_for_board/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# tox envs directory
|
||||
.tox
|
27
dist/tools/compile_and_test_for_board/tox.ini
vendored
Normal file
27
dist/tools/compile_and_test_for_board/tox.ini
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
[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 =
|
||||
pytest -v --doctest-modules {env:script}
|
||||
|
||||
[testenv:lint]
|
||||
deps = pylint
|
||||
commands =
|
||||
pylint {env:script}
|
||||
|
||||
[testenv:flake8]
|
||||
deps = flake8
|
||||
commands =
|
||||
flake8 {env:script}
|
Loading…
Reference in New Issue
Block a user