summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephen.finucane@intel.com>2016-01-19 22:02:52 +0000
committerStephen Finucane <stephen.finucane@intel.com>2016-01-25 16:09:36 +0000
commit8e58c29f23b9cc072c003268d641f00084ce3b3b (patch)
treeb03beeab653a15eccc253d9b1582411d9de57c32 /tox.ini
parentce7b58bc5b3256c8a97566f645970ff83f98d58d (diff)
downloadpatchwork-8e58c29f23b9cc072c003268d641f00084ce3b3b.tar
patchwork-8e58c29f23b9cc072c003268d641f00084ce3b3b.tar.gz
tox: Cleanup '.pyc' files before run
Sometimes leftover '.pyc' files can cause tests to fail. Ensure this never happens by always removing these files on start. Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 2b19d3c..a5e20a8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
-minversion = 1.6
+minversion = 2.0
envlist = py{27,34}-django{16,17,18,19}
skipsdist = True
[testenv]
+whitelist_externals = find
deps =
-r{toxinidir}/requirements-test.txt
django16: django>=1.6,<1.7
@@ -17,6 +18,7 @@ passenv =
PW_TEST_DB_USER PW_TEST_DB_PASS
DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
commands =
+ find . -type f -name "*.pyc" -delete
{toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \
'{posargs:patchwork}'