tox.ini 1.6 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
    -rrequirements.txt
    # Extras
13
    botocore
14
    Pillow != 3.0.0
D
Daniel Graña 已提交
15
    leveldb
16
    -rtests/requirements.txt
17
passenv =
18
    S3_TEST_FILE_URI
19 20
    AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY
21
commands =
22
    py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
23 24 25 26

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

36 37
[testenv:trunk]
basepython = python2.7
38
commands =
39 40
    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
41
    py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
42

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

D
Daniel Graña 已提交
51 52 53 54
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}

55 56 57 58
[testenv:py35]
basepython = python3.5
deps = {[testenv:py33]deps}

59
[docs]
J
Julia Medina 已提交
60 61 62
changedir = docs
deps =
    Sphinx
P
Paul Tremberth 已提交
63
    sphinx_rtd_theme
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