Skip to content

Commit 6051612

Browse files
committed
Merge branch 'travix-toxed'
Conflicts: requirements.txt
2 parents b6bed44 + d29791d commit 6051612

7 files changed

+49
-49
lines changed

.travis-workarounds.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
5+
if [[ "${TOXENV}" == "pypy" ]]; then
6+
sudo add-apt-repository -y ppa:pypy/ppa
7+
sudo apt-get -qy update
8+
sudo apt-get install -y pypy pypy-dev
9+
# This is required because we need to get rid of the Travis installed PyPy
10+
# or it'll take precedence over the PPA installed one.
11+
sudo rm -rf /usr/local/pypy/bin
12+
fi

.travis.yml

Lines changed: 13 additions & 18 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+
- TOXENV=py27
5+
- TOXENV=precise
6+
- TOXENV=trunk
7+
- TOXENV=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: TOXENV=pypy
12+
1913
install:
20-
- pip install --use-mirrors -r .travis/requirements-$BUILDENV.txt
21-
- pip install --use-mirrors .
22-
script:
23-
- trial scrapy
14+
- ./.travis-workarounds.sh
15+
- pip install -M tox
16+
17+
script: tox
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)