Skip to content

Commit

Permalink
tools/compile_test_one_board: add tox.ini configuration file
Browse files Browse the repository at this point in the history
tox.ini configures 3 checks on the python script: doctest (via pytest), pylint and flake8
  • Loading branch information
aabadie committed Jan 23, 2019
1 parent 26a6469 commit 148f715
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/tools/compile_and_test_for_board/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# tox envs directory
.tox
27 changes: 27 additions & 0 deletions dist/tools/compile_and_test_for_board/tox.ini
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 148f715

Please sign in to comment.