forked from django-haystack/django-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (107 loc) · 4.12 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
addons:
apt_packages:
- binutils
- default-jdk
- gdal-bin
- libgdal1h
- libgeos-c1
- libproj-dev
- libxapian22
- python-xapian
- wajig
before_install:
- sudo apt-get install -qy default-jre
- 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
sudo apt-get update
sudo apt-get -qy --allow-downgrades install elasticsearch=2.4.6
elif [[ $VERSION_ES == '>=5.0.0,<6.0.0' ]];
then
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-5.x.list
sudo apt-get update -qy
sudo apt-get -y --allow-downgrades install elasticsearch=5.6.10
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
sudo apt-get update -qy
sudo apt-get -qy --allow-downgrades install elasticsearch=1.7.6
fi
- sudo service elasticsearch restart
install:
- pip install --upgrade setuptools
- pip install codecov coverage
- 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
- coverage run setup.py test
after_success:
- codecov
env:
matrix:
- DJANGO_VERSION=">=1.11,<2.0" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.11,<2.0" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.11,<2.0" VERSION_ES=">=5.0.0,<6.0.0"
- DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=5.0.0,<6.0.0"
- DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=5.0.0,<6.0.0"
matrix:
allow_failures:
- python: 'pypy'
exclude:
- python: 2.7
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=5.0.0,<6.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=2.0.0,<3.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=1.0.0,<2.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=5.0.0,<6.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=2.0.0,<3.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=1.0.0,<2.0.0"
- python: 3.4
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=5.0.0,<6.0.0"
- python: 3.4
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=2.0.0,<3.0.0"
- python: 3.4
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=1.0.0,<2.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=5.0.0,<6.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=2.0.0,<3.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=1.0.0,<2.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=5.0.0,<6.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=2.0.0,<3.0.0"
- python: pypy
env: DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=1.0.0,<2.0.0"
notifications:
irc: 'irc.freenode.org#haystack'
email: false