forked from django-haystack/django-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (85 loc) · 2.51 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
os: linux
dist: bionic
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8
- pypy3
services:
- docker
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
addons:
apt_packages:
- binutils
- openjdk-8-jdk
- gdal-bin
- libgdal20
- libgeos-c1v5
- libproj-dev
- python-xapian
- wajig
before_install:
- mkdir -p $HOME/download-cache
- >
if [[ $VERSION_ES == '>=2,<3' ]];
then
docker run -d -p 9200:9200 elasticsearch:2.4.6-alpine
elif [[ $VERSION_ES == '>=5,<6' ]];
then
docker run -d -p 9200:9200 elasticsearch:5.6.10-alpine
else
docker run -d -p 9200:9200 elasticsearch:1.7.6-alpine
fi
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:
global:
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
jobs:
- DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=1,<2"
- DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=1,<2"
- DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=2,<3"
- DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=2,<3"
- DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=5,<6"
- DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=5,<6"
jobs:
allow_failures:
- python: 'pypy3'
exclude:
- python: pypy3
env: DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=5,<6"
- python: pypy3
env: DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=2,<3"
- python: pypy3
env: DJANGO_VERSION=">=2.2,<3.0" VERSION_ES=">=1,<2"
- python: pypy3
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=5,<6"
- python: pypy3
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=2,<3"
- python: pypy3
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=1,<2"
- python: 3.5
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=1,<2"
- python: 3.5
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=2,<3"
- python: 3.5
env: DJANGO_VERSION=">=3.0,<3.1" VERSION_ES=">=5,<6"
notifications:
irc: 'irc.freenode.org#haystack'
email: false