summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2017-07-24 15:23:51 +0100
committerRadostin Stoyanov <rstoyanov1@gmail.com>2017-07-24 15:23:51 +0100
commit52cfb3b8eabf7d6279e5c1cbfdec60a956740271 (patch)
tree3e0398e52a278f6b0b24dbd3ee91ec354c0214ff /tox.ini
parent5853bf681d2b18bf51f997526b3d3934345d0b4c (diff)
downloadvirt-bootstrap.git-52cfb3b8eabf7d6279e5c1cbfdec60a956740271.tar.gz
virt-bootstrap.git-52cfb3b8eabf7d6279e5c1cbfdec60a956740271.tar.xz
virt-bootstrap.git-52cfb3b8eabf7d6279e5c1cbfdec60a956740271.zip
Use tox to test against multiple Python versions
'Tox' is tool that will check if the package installs correctly and all unit tests pass with different Python versions.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini23
1 files changed, 23 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..e3f35cc
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,23 @@
+# 'Tox' is a tool for automating build/test cycles against
+# multiple Python versions:
+# http://pypi.python.org/pypi/tox
+# http://tox.readthedocs.io/en/latest/
+
+# Running the command 'tox' while in the root of the virt-bootstrap
+# source directory will:
+# - Create a source distribution (setup.py sdist)
+# - Then for every supported version of Python:
+# - Create a virtualenv in .tox/py$VERSION and install dependencies.
+# (These virtualenvs are cached across runs unless you use
+# --recreate.)
+# - Use pip to install the virt-bootstrap sdist into the virtualenv
+# - Run the virt-bootstrap tests
+
+# To run against a specific subset of Python versions, use:
+# tox -e py27
+
+[tox]
+envlist = py27,py3
+
+[testenv]
+commands={envpython} {toxinidir}/setup.py test