Skip to content

Commit c53936d

Browse files
committed
Use Travis’ matrix support rather than tox
This avoids a layer of build setup and makes the Travis console reports more useful
1 parent 59f0e1d commit c53936d

File tree

1 file changed

+34
-41
lines changed

1 file changed

+34
-41
lines changed

.travis.yml

Lines changed: 34 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,57 @@
11
sudo: false
22
language: python
33
python:
4-
- "2.7"
4+
- "2.6"
5+
- "2.7"
6+
- "3.3"
7+
- "3.4"
8+
- "pypy"
59

610
cache:
7-
apt: true
8-
pip: true
9-
directories:
10-
- $HOME/download-cache
11+
apt: true
12+
pip: true
13+
directories:
14+
- $HOME/download-cache
1115

1216
addons:
13-
apt_packages:
14-
- binutils
15-
- default-jdk
16-
- gdal-bin
17-
- libgdal1h
18-
- libgeos-c1
19-
- libproj-dev
20-
- libxapian22
21-
- python-xapian
22-
- wajig
17+
apt_packages:
18+
- binutils
19+
- default-jdk
20+
- gdal-bin
21+
- libgdal1h
22+
- libgeos-c1
23+
- libproj-dev
24+
- libxapian22
25+
- python-xapian
26+
- wajig
2327

2428
before_install:
25-
- mkdir -p $HOME/download-cache
29+
- mkdir -p $HOME/download-cache
2630

2731
install:
28-
- pip install tox requests
29-
- pip install -e .
32+
- pip install requests "Django${DJANGO_VERSION}"
33+
- python setup.py clean build install
3034

3135
before_script:
32-
- BACKGROUND_SOLR=true test_haystack/solr_tests/server/start-solr-test-server.sh
33-
- tox --notest -e $TOX_ENV
36+
- BACKGROUND_SOLR=true test_haystack/solr_tests/server/start-solr-test-server.sh
3437

3538
script:
36-
- tox -e $TOX_ENV
39+
- python test_haystack/solr_tests/server/wait-for-solr
40+
- python setup.py test
3741

3842
env:
39-
matrix:
40-
- TOX_ENV=py26-django1.6
41-
- TOX_ENV=py27-django1.6
42-
- TOX_ENV=py27-django1.7
43-
- TOX_ENV=py27-django1.8
44-
- TOX_ENV=py33-django1.6
45-
- TOX_ENV=py33-django1.7
46-
- TOX_ENV=py34-django1.6
47-
- TOX_ENV=py34-django1.7
48-
- TOX_ENV=py34-django1.8
49-
- TOX_ENV=pypy-django1.6
50-
- TOX_ENV=pypy-django1.7
51-
- TOX_ENV=pypy-django1.8
43+
matrix:
44+
- DJANGO_VERSION=">=1.6,<1.7"
45+
- DJANGO_VERSION=">=1.7,<1.8"
46+
- DJANGO_VERSION=">=1.8,<1.9"
5247

5348
matrix:
54-
allow_failures:
55-
- env: TOX_ENV=pypy-django1.6
56-
- env: TOX_ENV=pypy-django1.7
57-
- env: TOX_ENV=pypy-django1.8
49+
allow_failures:
50+
- python: "pypy"
5851

5952
services:
60-
- elasticsearch
53+
- elasticsearch
6154

6255
notifications:
63-
irc: "irc.freenode.org#haystack"
64-
email: false
56+
irc: "irc.freenode.org#haystack"
57+
email: false

0 commit comments

Comments
 (0)