Merge pull request #341 from kmike/test-running

Improved tox test running & fixed django tests
This commit is contained in:
Daniel Graña 2013-07-16 11:16:43 -07:00
commit 891fa980d2
6 changed files with 23 additions and 6 deletions

View File

@ -8,6 +8,7 @@ env:
- BUILDENV=latest
install:
- pip install --use-mirrors -r .travis/requirements-$BUILDENV.txt
- pip install .
script:
- trial scrapy
notifications:

View File

@ -3,4 +3,4 @@ lxml
twisted
boto
Pillow
.
django

View File

@ -4,4 +4,3 @@ lxml==2.2.4
twisted==10.0.0
boto==1.9b
Pillow<2.0
.

View File

@ -4,4 +4,4 @@ lxml==2.3.2
twisted==11.1.0
boto==2.2.2
Pillow<2.0
.
django==1.3.1

View File

@ -4,3 +4,5 @@ DATABASES = {
'NAME': ':memory:',
}
}
SECRET_KEY = 'top-secret'

21
tox.ini
View File

@ -4,9 +4,24 @@
# and then run "tox" from this directory.
[tox]
envlist = py26, py27
envlist = py26, py27, lucid, precise
[testenv]
deps =
-r{toxinidir}/.travis/requirements-latest.txt
commands =
pip install --use-mirrors -r .travis/requirements-latest.txt
trial scrapy
{toxinidir}/bin/runtests.sh []
[testenv:lucid]
basepython = python2.6
deps =
-r{toxinidir}/.travis/requirements-lucid.txt
[testenv:precise]
basepython = python2.7
deps =
-r{toxinidir}/.travis/requirements-precise.txt
[testenv:windows]
commands =
{toxinidir}/bin/runtests.bat []