summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README15
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini20
3 files changed, 36 insertions, 0 deletions
diff --git a/README b/README
index e69de29b..07d7a27b 100644
--- a/README
+++ b/README
@@ -0,0 +1,15 @@
+=======
+Testing
+=======
+
+Install 'tox' package first:
+
+ $ pip install tox
+
+Run all the tests (currently, it is only pep8 checks):
+
+ $ tox
+
+Run only 'pep8' checks:
+
+ $ tox -e pep8
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 00000000..39304807
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1 @@
+flake8
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..460066d9
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,20 @@
+[tox]
+minversion = 2.0
+skipsdist = True
+envlist = pep8
+
+[testenv]
+basepython = python2.7
+setenv = VIRTUAL_ENV={envdir}
+whitelist_externals = find
+commands = find . -type f -name "*.py[c|o]" -delete
+
+[testenv:pep8]
+deps = -r{toxinidir}/test-requirements.txt
+commands = flake8 {posargs}
+
+[testenv:venv]
+commands = {posargs}
+
+[flake8]
+exclude = .git,.tox,.venv,*egg,docs,examples,templates