tox.ini 1.3 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
D
Daniel Graña 已提交
8 9
indexserver =
    HPK = https://devpi.net/hpk/dev/
10 11

[testenv]
12
deps =
13 14 15 16 17
    -rrequirements.txt
    # Extras
    boto
    Pillow
    django
18
    -rtests-requirements.txt
19
commands =
D
Daniel Graña 已提交
20
    py.test --twisted {posargs:scrapy}
21 22 23 24

[testenv:precise]
basepython = python2.7
deps =
25 26 27 28 29 30 31
    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
32
    -rtests-requirements.txt
33

34 35
[testenv:trunk]
basepython = python2.7
36 37 38
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
D
Daniel Graña 已提交
39
    py.test --twisted {posargs:scrapy}
40

D
Daniel Graña 已提交
41 42 43
[testenv:py33]
basepython = python3.3
deps =
44
    svn+svn://svn.twistedmatrix.com/svn/Twisted/trunk#egg=Twisted
D
Daniel Graña 已提交
45 46 47 48 49
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
    w3lib>=1.5
D
Daniel Graña 已提交
50 51 52 53
    # tests requirements
    mock
    :HPK:pytest>2.5.2
    pytest-twisted
D
Daniel Graña 已提交
54

55 56
[testenv:windows]
commands =
57
    bin/runtests.bat []
58
sitepackages = False