mirror of https://github.com/scrapy/scrapy.git
Merge pull request #341 from kmike/test-running
Improved tox test running & fixed django tests
This commit is contained in:
commit
891fa980d2
|
|
@ -8,6 +8,7 @@ env:
|
|||
- BUILDENV=latest
|
||||
install:
|
||||
- pip install --use-mirrors -r .travis/requirements-$BUILDENV.txt
|
||||
- pip install .
|
||||
script:
|
||||
- trial scrapy
|
||||
notifications:
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ lxml
|
|||
twisted
|
||||
boto
|
||||
Pillow
|
||||
.
|
||||
django
|
||||
|
|
|
|||
|
|
@ -4,4 +4,3 @@ lxml==2.2.4
|
|||
twisted==10.0.0
|
||||
boto==1.9b
|
||||
Pillow<2.0
|
||||
.
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ lxml==2.3.2
|
|||
twisted==11.1.0
|
||||
boto==2.2.2
|
||||
Pillow<2.0
|
||||
.
|
||||
django==1.3.1
|
||||
|
|
|
|||
|
|
@ -4,3 +4,5 @@ DATABASES = {
|
|||
'NAME': ':memory:',
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = 'top-secret'
|
||||
|
|
|
|||
21
tox.ini
21
tox.ini
|
|
@ -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 []
|
||||
|
|
|
|||
Loading…
Reference in New Issue