Set up tox.ini to run more properly:
- Don't run dbupdate... the tests themselves do this, and we might mess up someone's db - We shouldn't run setup.py develop because that installs a new *live* db... the tests do isolation, so... - Install the package's dependencies by the package itself... it seems that removing "skipsdist = True" fixes this - Run py.test manually rather than use runtests.sh (which itself uses ./bin/py.test if it can)
This commit is contained in:
parent
39a9035487
commit
b6df960806
7
tox.ini
7
tox.ini
@ -1,14 +1,11 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27, py33
|
envlist = py27, py33
|
||||||
skipsdist = True
|
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
sitepackages = False
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
commands = py.test ./mediagoblin/tests --boxed
|
||||||
python setup.py develop
|
|
||||||
gmg dbupdate
|
|
||||||
sh runtests.sh
|
|
||||||
deps =
|
deps =
|
||||||
git+https://github.com/ianare/exif-py.git@develop
|
git+https://github.com/ianare/exif-py.git@develop
|
||||||
lxml
|
lxml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user