tox.ini 1.4 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
8 9

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

[testenv:precise]
basepython = python2.7
deps =
23 24
    pyOpenSSL==0.13
    lxml==2.3.2
D
Daniel Graña 已提交
25
    Twisted==11.1.0
26
    boto==2.2.2
27
    Pillow<2.0
28
    cssselect==0.9.1
D
Daniel Graña 已提交
29
    zope.interface==3.6.1
30
    -rtests/requirements.txt
31

32 33
[testenv:trunk]
basepython = python2.7
34
commands =
35 36
    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
37
    py.test {posargs:scrapy tests}
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
    Twisted >= 14.0.0
D
Daniel Graña 已提交
44 45 46 47
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
48
    w3lib>=1.8.0
49
    Pillow
D
Daniel Graña 已提交
50
    # tests requirements
D
Daniel Graña 已提交
51
    pytest>=2.6.0
D
Daniel Graña 已提交
52
    pytest-twisted
D
Daniel Graña 已提交
53

D
Daniel Graña 已提交
54 55 56 57
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}

J
Julia Medina 已提交
58 59 60 61 62 63 64
[testenv:docs]
changedir = docs
deps =
    Sphinx
commands =
    sphinx-build -W -b html . build/html
    sphinx-build -W -b linkcheck . build/linkcheck