diff --git a/dist/tools/compile_and_test_for_board/.gitignore b/dist/tools/compile_and_test_for_board/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..92f3a8ec561361a85e4830f99ed477cbf5b9e437
--- /dev/null
+++ b/dist/tools/compile_and_test_for_board/.gitignore
@@ -0,0 +1,2 @@
+# tox envs directory
+.tox
diff --git a/dist/tools/compile_and_test_for_board/tox.ini b/dist/tools/compile_and_test_for_board/tox.ini
new file mode 100644
index 0000000000000000000000000000000000000000..b3c89b9cac68330d9f5e30fa04d2eee8dda1267e
--- /dev/null
+++ b/dist/tools/compile_and_test_for_board/tox.ini
@@ -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}