2012-06-28 12:43:12 -07:00
|
|
|
# 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]
|
2014-07-30 16:53:28 -03:00
|
|
|
envlist = py27
|
2012-06-28 12:43:12 -07:00
|
|
|
|
|
|
|
[testenv]
|
2013-07-09 00:26:59 +06:00
|
|
|
deps =
|
2013-11-07 04:02:46 -02:00
|
|
|
-rrequirements.txt
|
|
|
|
# Extras
|
2016-02-05 14:46:56 +03:00
|
|
|
botocore
|
2015-10-06 17:24:52 +05:00
|
|
|
Pillow != 3.0.0
|
2014-03-06 02:13:15 -02:00
|
|
|
leveldb
|
2014-07-30 17:29:41 -03:00
|
|
|
-rtests/requirements.txt
|
2016-02-15 16:20:13 +03:00
|
|
|
passenv =
|
2016-02-15 17:50:47 +03:00
|
|
|
S3_TEST_FILE_URI
|
2016-02-15 16:20:13 +03:00
|
|
|
AWS_ACCESS_KEY_ID
|
|
|
|
AWS_SECRET_ACCESS_KEY
|
2012-06-28 12:43:12 -07:00
|
|
|
commands =
|
2015-08-13 19:02:36 -03:00
|
|
|
py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
|
2013-07-09 00:26:59 +06:00
|
|
|
|
|
|
|
[testenv:precise]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
2013-11-07 04:02:46 -02:00
|
|
|
pyOpenSSL==0.13
|
|
|
|
lxml==2.3.2
|
2014-07-30 17:30:40 -03:00
|
|
|
Twisted==11.1.0
|
2013-11-07 04:02:46 -02:00
|
|
|
boto==2.2.2
|
2014-09-10 12:21:08 -03:00
|
|
|
Pillow<2.0
|
2013-11-07 04:02:46 -02:00
|
|
|
cssselect==0.9.1
|
2014-08-09 00:44:48 -03:00
|
|
|
zope.interface==3.6.1
|
2014-07-31 12:50:07 -03:00
|
|
|
-rtests/requirements.txt
|
2013-07-09 00:38:00 +06:00
|
|
|
|
2016-09-01 10:19:49 +02:00
|
|
|
[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
|
|
|
|
|
2013-10-18 16:08:27 -02:00
|
|
|
[testenv:trunk]
|
|
|
|
basepython = python2.7
|
2013-11-07 04:02:46 -02:00
|
|
|
commands =
|
2014-06-02 20:29:35 +00:00
|
|
|
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
|
2015-08-13 19:02:36 -03:00
|
|
|
py.test --cov=scrapy --cov-report= {posargs:scrapy tests}
|
2013-10-18 16:08:27 -02:00
|
|
|
|
2013-11-19 20:15:15 -02:00
|
|
|
[testenv:py33]
|
|
|
|
basepython = python3.3
|
|
|
|
deps =
|
2015-07-29 16:32:11 +00:00
|
|
|
-rrequirements-py3.txt
|
|
|
|
# Extras
|
2014-08-01 23:12:52 +06:00
|
|
|
Pillow
|
2015-07-29 16:32:11 +00:00
|
|
|
-rtests/requirements-py3.txt
|
2013-11-19 20:15:15 -02:00
|
|
|
|
2014-07-24 15:38:04 -03:00
|
|
|
[testenv:py34]
|
|
|
|
basepython = python3.4
|
|
|
|
deps = {[testenv:py33]deps}
|
|
|
|
|
2016-01-13 12:47:42 +01:00
|
|
|
[testenv:py35]
|
|
|
|
basepython = python3.5
|
|
|
|
deps = {[testenv:py33]deps}
|
|
|
|
|
2015-05-14 20:41:55 -03:00
|
|
|
[docs]
|
2014-04-09 18:46:01 -03:00
|
|
|
changedir = docs
|
|
|
|
deps =
|
|
|
|
Sphinx
|
2016-03-30 14:31:10 +02:00
|
|
|
sphinx_rtd_theme
|
2015-05-14 20:41:55 -03:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
changedir = {[docs]changedir}
|
|
|
|
deps = {[docs]deps}
|
2014-04-09 18:46:01 -03:00
|
|
|
commands =
|
2015-05-14 20:40:12 -03:00
|
|
|
sphinx-build -W -b html . {envtmpdir}/html
|
2015-05-14 20:41:55 -03:00
|
|
|
|
|
|
|
[testenv:docs-links]
|
|
|
|
changedir = {[docs]changedir}
|
|
|
|
deps = {[docs]deps}
|
|
|
|
commands =
|
2015-05-14 20:40:12 -03:00
|
|
|
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
|