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 14 15
    -rrequirements.txt
    # Extras
    boto
    Pillow
    django
D
Daniel Graña 已提交
16
    leveldb
17
    -rtests/requirements.txt
18
commands =
D
Daniel Graña 已提交
19
    py.test --twisted {posargs:scrapy tests}
20 21 22 23

[testenv:precise]
basepython = python2.7
deps =
24 25 26 27 28 29 30
    pyOpenSSL==0.13
    lxml==2.3.2
    twisted==11.1.0
    boto==2.2.2
    Pillow<2.0
    django==1.3.1
    cssselect==0.9.1
31
    -rtests-requirements.txt
32

33 34
[testenv:trunk]
basepython = python2.7
35
commands =
36 37
    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
D
Daniel Graña 已提交
38
    py.test --twisted {posargs:scrapy tests}
39

D
Daniel Graña 已提交
40 41 42
[testenv:py33]
basepython = python3.3
deps =
43 44
;    svn+svn://svn.twistedmatrix.com/svn/Twisted/trunk#egg=Twisted
    twisted >= 14.0.0
D
Daniel Graña 已提交
45 46 47 48 49
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
    w3lib>=1.5
D
Daniel Graña 已提交
50 51
    # tests requirements
    mock
D
Daniel Graña 已提交
52
    pytest>=2.6.0
D
Daniel Graña 已提交
53
    pytest-twisted
D
Daniel Graña 已提交
54

D
Daniel Graña 已提交
55 56 57 58
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}

59 60
[testenv:windows]
commands =
61
    bin/runtests.bat []
62
sitepackages = False
J
Julia Medina 已提交
63 64 65 66 67 68 69 70

[testenv:docs]
changedir = docs
deps =
    Sphinx
commands =
    sphinx-build -W -b html . build/html
    sphinx-build -W -b linkcheck . build/linkcheck