summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini27
1 files changed, 27 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..0fdf31c
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,27 @@
+# Copyright 2017 Canonical Ltd.
+# Licensed under the LGPLv3, see LICENCE file for details.
+
+[tox]
+envlist = py27, py35, style, docs
+
+[testenv]
+setenv =
+ PYTHONPATH = {toxinidir}:{toxinidir}/macaroonbakery
+commands =
+ nosetests {posargs:--quiet}
+deps =
+ -r{toxinidir}/test-requirements.txt
+
+[testenv:devenv]
+envdir = devenv
+usedevelop = True
+commands =
+
+[testenv:lint]
+usedevelop = True
+commands = flake8 --ignore E731 --show-source macaroonbakery
+
+[testenv:docs]
+changedir = docs
+deps = sphinx
+commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html