tox.ini 1.2 KB
Newer Older
1 2 3 4 5 6
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
D
Daniel Graña 已提交
7
envlist = py27, pypy, precise, trunk, py33
8 9

[testenv]
10
deps =
11 12 13 14 15
    -rrequirements.txt
    # Extras
    boto
    Pillow
    django
16
    -rtests-requirements.txt
17
commands =
18
    trial {posargs:scrapy}
19 20 21 22

[testenv:precise]
basepython = python2.7
deps =
23 24 25 26 27 28 29
    pyOpenSSL==0.13
    lxml==2.3.2
    twisted==11.1.0
    boto==2.2.2
    Pillow<2.0
    django==1.3.1
    cssselect==0.9.1
30
    -rtests-requirements.txt
31

32 33
[testenv:trunk]
basepython = python2.7
34 35 36
commands =
    pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
    pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
37
    trial {posargs:scrapy}
38

D
Daniel Graña 已提交
39 40 41
[testenv:py33]
basepython = python3.3
deps =
42
    svn+svn://svn.twistedmatrix.com/svn/Twisted/trunk#egg=Twisted
D
Daniel Graña 已提交
43 44 45 46 47 48
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
    w3lib>=1.5
commands =
49
    trial {posargs:scrapy}
D
Daniel Graña 已提交
50

51 52
[testenv:windows]
commands =
53
    bin/runtests.bat []
54
sitepackages = False