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

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

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

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

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

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

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

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

K
Konstantin Lopuhin 已提交
83 84 85 86 87 88
[testenv:pypy3]
basepython = pypy3
deps = {[testenv:py34]deps}
commands =
    py.test {posargs:scrapy tests}

89
[docs]
J
Julia Medina 已提交
90 91
changedir = docs
deps =
H
harshasrinivas 已提交
92
    -rdocs/requirements.txt
93 94 95 96

[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
J
Julia Medina 已提交
97
commands =
98
    sphinx-build -W -b html . {envtmpdir}/html
99 100 101 102 103

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