tox.ini 2.0 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
[testenv:trusty]
25 26
basepython = python2.7
deps =
27
    pyOpenSSL==0.13
28 29 30 31
    lxml==3.3.3
    Twisted==13.2.0
    boto==2.20.1
    Pillow==2.3.0
32
    cssselect==0.9.1
33
    zope.interface==4.0.5
34
    -rtests/requirements.txt
35

P
Paul Tremberth 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49
[testenv:jessie]
# https://packages.debian.org/en/jessie/python/
# https://packages.debian.org/en/jessie/zope/
basepython = python2.7
deps =
    pyOpenSSL==0.14
    lxml==3.4.0
    Twisted==14.0.2
    boto==2.34.0
    Pillow==2.6.1
    cssselect==0.9.1
    zope.interface==4.1.1
    -rtests/requirements.txt

50 51
[testenv:trunk]
basepython = python2.7
52
commands =
53 54
    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
55
    py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
56

57 58 59 60 61
[testenv:pypy]
basepython = pypy
commands =
    py.test {posargs:scrapy tests}

D
Daniel Graña 已提交
62 63 64
[testenv:py33]
basepython = python3.3
deps =
N
nyov 已提交
65 66
    -rrequirements-py3.txt
    # Extras
67
    Pillow
N
nyov 已提交
68
    -rtests/requirements-py3.txt
D
Daniel Graña 已提交
69

D
Daniel Graña 已提交
70 71 72 73
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}

74 75 76 77
[testenv:py35]
basepython = python3.5
deps = {[testenv:py33]deps}

78 79 80 81
[testenv:py36]
basepython = python3.6
deps = {[testenv:py33]deps}

82
[docs]
J
Julia Medina 已提交
83 84 85
changedir = docs
deps =
    Sphinx
P
Paul Tremberth 已提交
86
    sphinx_rtd_theme
87 88 89 90

[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
J
Julia Medina 已提交
91
commands =
92
    sphinx-build -W -b html . {envtmpdir}/html
93 94 95 96 97

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