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]
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
    service_identity
17
    -rtests/requirements.txt
18
commands =
19
    py.test {posargs:scrapy tests}
20 21 22 23

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

33 34
[testenv:trunk]
basepython = python2.7
35
commands =
36 37
    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
38
    py.test {posargs:scrapy tests}
39

D
Daniel Graña 已提交
40 41 42
[testenv:py33]
basepython = python3.3
deps =
43
    Twisted >= 15.1.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
50
    service_identity
D
Daniel Graña 已提交
51
    # tests requirements
D
Daniel Graña 已提交
52
    pytest>=2.6.0
D
Daniel Graña 已提交
53
    pytest-twisted
54
    testfixtures
D
Daniel Graña 已提交
55

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

60
[docs]
J
Julia Medina 已提交
61 62 63
changedir = docs
deps =
    Sphinx
64 65 66 67

[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
J
Julia Medina 已提交
68
commands =
69
    sphinx-build -W -b html . {envtmpdir}/html
70 71 72 73 74

[testenv:docs-links]
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
75
    sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck