forked from rhblind/drf-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (65 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
74
sudo: required
dist: xenial
language: python
python:
- 3.6
- 3.7
- 3.8
- 3.9
- pypy3.6-7.1.1
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
jdk:
- oraclejdk8
addons:
apt_packages:
- binutils
- default-jdk
- gdal-bin
- libgdal1i
- libgeos-c1v5
- libproj-dev
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 [[ $ES_VERSION == '>=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 -y --allow-downgrades install elasticsearch=2.4.5
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
sudo apt-get -y --allow-downgrades install elasticsearch=1.7.6
fi
- sudo service elasticsearch restart
install:
- pip install --upgrade pip setuptools
- pip install coveralls geopy requests tox
- pip install "Django${DJANGO_VERSION}" "elasticsearch${ES_VERSION}"
- python setup.py clean build install
after_success:
coveralls
script:
- python setup.py test
env:
matrix:
# ES 1.x
- DJANGO_VERSION=">=2.2,<2.3" ES_VERSION=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=3.0,<3.1" ES_VERSION=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=3.1,<3.2" ES_VERSION=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=3.2,<3.3" ES_VERSION=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=4.0,<=4.1" ES_VERSION=">=1.0.0,<2.0.0"
# ES 2.x
- DJANGO_VERSION=">=2.2,<2.3" ES_VERSION=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=3.0,<3.1" ES_VERSION=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=3.1,<3.2" ES_VERSION=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=3.2,<3.3" ES_VERSION=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=4.0,<=4.2" ES_VERSION=">=2.0.0,<3.0.0"
notifications:
email: false