tox.ini 2.1 KB
Newer Older
A
Aditya 已提交
1
# Tox (https://tox.readthedocs.io/) is a tool for running tests
2 3 4 5 6
# 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
R
rhoboro 已提交
14
    google-cloud-storage
15
    Pillow != 3.0.0
D
Daniel Graña 已提交
16
    leveldb
17
    -rtests/requirements.txt
18
passenv =
19
    S3_TEST_FILE_URI
20 21
    AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY
R
rhoboro 已提交
22 23
    GCS_TEST_FILE_URI
    GCS_PROJECT_ID
24
commands =
25
    py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
26

27
[testenv:trusty]
28 29
basepython = python2.7
deps =
30
    pyOpenSSL==0.13
31 32 33 34
    lxml==3.3.3
    Twisted==13.2.0
    boto==2.20.1
    Pillow==2.3.0
35
    cssselect==0.9.1
36
    zope.interface==4.0.5
37
    -rtests/requirements.txt
38

P
Paul Tremberth 已提交
39 40 41 42 43
[testenv:jessie]
# https://packages.debian.org/en/jessie/python/
# https://packages.debian.org/en/jessie/zope/
basepython = python2.7
deps =
44
    cryptography==0.6.1
P
Paul Tremberth 已提交
45 46 47 48 49 50 51 52 53
    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

54 55
[testenv:trunk]
basepython = python2.7
56
commands =
57 58
    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
59
    py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
60

61 62 63 64 65
[testenv:pypy]
basepython = pypy
commands =
    py.test {posargs:scrapy tests}

H
Hugo 已提交
66 67
[testenv:py34]
basepython = python3.4
D
Daniel Graña 已提交
68
deps =
N
nyov 已提交
69 70
    -rrequirements-py3.txt
    # Extras
71
    Pillow
N
nyov 已提交
72
    -rtests/requirements-py3.txt
D
Daniel Graña 已提交
73

74 75
[testenv:py35]
basepython = python3.5
H
Hugo 已提交
76
deps = {[testenv:py34]deps}
77

78 79
[testenv:py36]
basepython = python3.6
H
Hugo 已提交
80
deps = {[testenv:py34]deps}
81

82
[docs]
J
Julia Medina 已提交
83 84
changedir = docs
deps =
H
harshasrinivas 已提交
85
    -rdocs/requirements.txt
86 87 88 89

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

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