提交 fabb3510 编写于 作者: D Daniel Graña

map travis-ci matrix to tox environments

上级 bc7fa611
language: python language: python
python: 2.7
env: env:
TRAVISBUG="#1027" - TOX_ENV=py27
- TOX_ENV=precise
- TOX_ENV=trunk
- TOX_ENV=pypy
matrix: matrix:
exclude:
- env: TRAVISBUG="#1027"
include:
- python: "2.7"
env: BUILDENV=precise
- python: "2.7"
env: BUILDENV=latest
- python: "2.7"
env: BUILDENV=trunk
- python: "pypy"
env: BUILDENV=latest
allow_failures: allow_failures:
- python: "pypy" - env: TOX_ENV=pypy
env: BUILDENV=latest
install: install:
- pip install --use-mirrors -r .travis/requirements-$BUILDENV.txt - pip install -M tox
- pip install --use-mirrors .
script: script:
- trial scrapy - tox -e $TOX_ENV
notifications: notifications:
irc: irc:
channels: channels:
......
pyOpenSSL
lxml
twisted
boto
Pillow
django
# testing requirements
mock
# travis workers uses openssl 1.0 that fails for pyOpenSSL < 0.13
pyOpenSSL==0.13
lxml==2.3.2
twisted==11.1.0
boto==2.2.2
Pillow<2.0
django==1.3.1
# testing requirements
mock==1.0.1
-r requirements-latest.txt
git+https://github.com/scrapy/w3lib#egg=w3lib
git+https://github.com/scrapy/queuelib#egg=queuelib
...@@ -4,25 +4,40 @@ ...@@ -4,25 +4,40 @@
# and then run "tox" from this directory. # and then run "tox" from this directory.
[tox] [tox]
envlist = py27, precise, trunk envlist = py27, pypy, precise, trunk
[testenv] [testenv]
deps = deps =
-r{toxinidir}/.travis/requirements-latest.txt -rrequirements.txt
# Extras
boto
Pillow
django
# Only required to run tests
mock
commands = commands =
{toxinidir}/bin/runtests.sh [] trial scrapy
[testenv:precise] [testenv:precise]
basepython = python2.7 basepython = python2.7
deps = deps =
-r{toxinidir}/.travis/requirements-precise.txt 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
mock==1.0.1
[testenv:trunk] [testenv:trunk]
basepython = python2.7 basepython = python2.7
deps = commands =
-r{toxinidir}/.travis/requirements-trunk.txt pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
trial scrapy
[testenv:windows] [testenv:windows]
commands = commands =
{toxinidir}/bin/runtests.bat [] bin/runtests.bat []
sitepackages = False sitepackages = False
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册