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
    -rrequirements.txt
    # Extras
    boto
14
    Pillow != 3.0.0
D
Daniel Graña 已提交
15
    leveldb
16
    -rtests/requirements.txt
17
commands =
18
    py.test --cov=scrapy --cov-report= {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 --cov=scrapy --cov-report= {posargs:scrapy tests}
38

D
Daniel Graña 已提交
39 40 41
[testenv:py33]
basepython = python3.3
deps =
N
nyov 已提交
42 43
    -rrequirements-py3.txt
    # Extras
44
    Pillow
N
nyov 已提交
45
    -rtests/requirements-py3.txt
D
Daniel Graña 已提交
46

D
Daniel Graña 已提交
47 48 49 50
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}

51 52 53 54
[testenv:py35]
basepython = python3.5
deps = {[testenv:py33]deps}

55
[docs]
J
Julia Medina 已提交
56 57 58
changedir = docs
deps =
    Sphinx
59 60 61 62

[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
J
Julia Medina 已提交
63
commands =
64
    sphinx-build -W -b html . {envtmpdir}/html
65 66 67 68 69

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