tox.ini 1.5 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]
J
Julia Medina 已提交
7
envlist = py27, pypy, precise, trunk, py33, docs
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
D
Daniel Graña 已提交
18
    leveldb
19
    -rtests-requirements.txt
20
commands =
D
Daniel Graña 已提交
21
    py.test --twisted {posargs:scrapy}
22 23 24 25

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

35 36
[testenv:trunk]
basepython = python2.7
37
commands =
38 39
    pip install -U https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
    pip install -U https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
D
Daniel Graña 已提交
40
    py.test --twisted {posargs:scrapy}
41

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

57 58
[testenv:windows]
commands =
59
    bin/runtests.bat []
60
sitepackages = False
J
Julia Medina 已提交
61 62 63 64 65 66 67 68

[testenv:docs]
changedir = docs
deps =
    Sphinx
commands =
    sphinx-build -W -b html . build/html
    sphinx-build -W -b linkcheck . build/linkcheck