forked from django-haystack/django-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (64 loc) · 2.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.4
- 3.5
- pypy
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
jdk:
- oraclejdk8
addons:
apt_packages:
- binutils
- default-jdk
- gdal-bin
- libgdal1h
- libgeos-c1
- libproj-dev
- libxapian22
- python-xapian
- wajig
before_install:
- mkdir -p $HOME/download-cache
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-repo
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- >
if [[ $VERSION_ES == '>=2.0.0,<3.0.0' ]];
then
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
else
echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
fi
- sudo apt-get update
- sudo apt-get -y install elasticsearch
- sudo service elasticsearch restart
install:
- pip install --upgrade setuptools
- pip install requests "Django${DJANGO_VERSION}" "elasticsearch${VERSION_ES}"
- python setup.py clean build install
before_script:
- BACKGROUND_SOLR=true test_haystack/solr_tests/server/start-solr-test-server.sh
script:
- python test_haystack/solr_tests/server/wait-for-solr
- python setup.py test
env:
matrix:
- DJANGO_VERSION=">=1.8,<1.9" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.9,<1.10" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.10,<1.11" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.8,<1.9" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.9,<1.10" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.10,<1.11" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.11,<1.12" VERSION_ES=">=2.0.0,<3.0.0"
matrix:
allow_failures:
- python: 'pypy'
notifications:
irc: "irc.freenode.org#haystack"
email: false