summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2015-06-08 21:51:13 -0400
committerJulian Berman <Julian@GrayVines.com>2015-06-08 21:51:30 -0400
commit96c5f476a1cb5152e61eef8d4771260328d1345b (patch)
treed610181351f5670a63d0405d5d53ca62e8d96dc6
parent3f459b73a2c27fcbf9356e7bd9ff5ac27fb5bac7 (diff)
downloadjsonschema-96c5f476a1cb5152e61eef8d4771260328d1345b.tar.gz
Try and catch some basic release issues with requirements across versions.
-rw-r--r--tox.ini22
1 files changed, 18 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index ae1b6c5..f111c66 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,15 +3,29 @@ envlist = py{26,27,34,py,py3}, docs, style
[testenv]
-changedir = {envtmpdir}
setenv =
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
+whitelist_externals =
+ python2.7
+ sh
+ virtualenv
commands =
- py26: trial [] jsonschema
- py{27,34,py,py3}: green [] jsonschema
+ py26: sh -c 'cd {envtmpdir}; {envbindir}/trial [] jsonschema'
+ py{27,34,py,py3}: {envbindir}/green [] jsonschema
{envpython} -m doctest {toxinidir}/README.rst
- py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
+ py{26,27,34}: {envbindir}/sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
+
+ # Check to make sure that releases build and install properly
+ virtualenv --quiet --python=python2.7 {envtmpdir}/venv
+ {envtmpdir}/venv/bin/pip install --quiet wheel
+
+ {envtmpdir}/venv/bin/python {toxinidir}/setup.py --quiet bdist_wheel --dist-dir={envtmpdir}/wheel
+ sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/wheel/jsonschema*.whl'
+
+ python2.7 {toxinidir}/setup.py --quiet sdist --dist-dir={envtmpdir}/sdist --format=gztar,zip
+ sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.tar.gz'
+ sh -c '{envbindir}/pip install --quiet --upgrade --force-reinstall {envtmpdir}/sdist/jsonschema*.zip'
deps =
-e{toxinidir}[format]