Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created April 15, 2014 07:38
Show Gist options
  • Select an option

  • Save dstufft/10710869 to your computer and use it in GitHub Desktop.

Select an option

Save dstufft/10710869 to your computer and use it in GitHub Desktop.
diff --git a/detox.sh b/detox.sh
index e69de29..5fb8286 100755
--- a/detox.sh
+++ b/detox.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Create the sdist
+rm -rf .tox/dist
+python setup.py sdist --formats zip --dist-dir .tox/dist
+
+# Run the tests
+tox -l | xargs -n 1 -P 4 tox -e
diff --git a/tox.ini b/tox.ini
index 4e23924..48c4e69 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
[tox]
envlist = py34,pep8,docs,packaging
+skipsdist = true
[testenv]
basepython = python3.4
@@ -7,6 +8,7 @@ deps =
coverage
pretend
pytest
+ .tox/dist/warehouse-14.2.1.zip
commands =
coverage run --source warehouse -m pytest --strict []
coverage report -m --fail-under 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment