Skip to content

Commit fabb351

Browse files
committed
map travis-ci matrix to tox environments
1 parent bc7fa61 commit fabb351

6 files changed

+36
-48
lines changed

.travis.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
language: python
2+
python: 2.7
23
env:
3-
TRAVISBUG="#1027"
4+
- TOX_ENV=py27
5+
- TOX_ENV=precise
6+
- TOX_ENV=trunk
7+
- TOX_ENV=pypy
8+
49
matrix:
5-
exclude:
6-
- env: TRAVISBUG="#1027"
7-
include:
8-
- python: "2.7"
9-
env: BUILDENV=precise
10-
- python: "2.7"
11-
env: BUILDENV=latest
12-
- python: "2.7"
13-
env: BUILDENV=trunk
14-
- python: "pypy"
15-
env: BUILDENV=latest
1610
allow_failures:
17-
- python: "pypy"
18-
env: BUILDENV=latest
11+
- env: TOX_ENV=pypy
12+
1913
install:
20-
- pip install --use-mirrors -r .travis/requirements-$BUILDENV.txt
21-
- pip install --use-mirrors .
14+
- pip install -M tox
15+
2216
script:
23-
- trial scrapy
17+
- tox -e $TOX_ENV
18+
2419
notifications:
2520
irc:
2621
channels:

.travis/requirements-latest.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis/requirements-precise.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

.travis/requirements-trunk.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Twisted>=10.0.0
2-
w3lib>=1.2
3-
queuelib
42
lxml
53
pyOpenSSL
64
cssselect>=0.9
5+
w3lib>=1.2
6+
queuelib

tox.ini

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,40 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, precise, trunk
7+
envlist = py27, pypy, precise, trunk
88

99
[testenv]
1010
deps =
11-
-r{toxinidir}/.travis/requirements-latest.txt
11+
-rrequirements.txt
12+
# Extras
13+
boto
14+
Pillow
15+
django
16+
# Only required to run tests
17+
mock
1218
commands =
13-
{toxinidir}/bin/runtests.sh []
19+
trial scrapy
1420

1521
[testenv:precise]
1622
basepython = python2.7
1723
deps =
18-
-r{toxinidir}/.travis/requirements-precise.txt
24+
pyOpenSSL==0.13
25+
lxml==2.3.2
26+
twisted==11.1.0
27+
boto==2.2.2
28+
Pillow<2.0
29+
django==1.3.1
30+
cssselect==0.9.1
31+
mock==1.0.1
1932

2033
[testenv:trunk]
2134
basepython = python2.7
22-
deps =
23-
-r{toxinidir}/.travis/requirements-trunk.txt
35+
commands =
36+
pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
37+
pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
38+
trial scrapy
2439

2540
[testenv:windows]
2641
commands =
27-
{toxinidir}/bin/runtests.bat []
42+
bin/runtests.bat []
2843
sitepackages = False

0 commit comments

Comments
 (0)