forked from barseghyanartur/django-elasticsearch-dsl-drf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (77 loc) · 3.33 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
dist: xenial
services:
- elasticsearch
language: python
# Almost full matrix is presented here, except for Django 3.0 in combination
# with Elasticsearch 6.x. This limitation is due to limitation of the
# django-elasticsearch-dsl library to support multiple versions of
# Elasticsearch (and as a result, Django 3.0 support which is added in
# recent versions is only available for Elasticsearch 7.x).
matrix:
fast_finish: true
include:
- env: TOX_ENV=py36-django22-elasticsearch7
python: 3.6
- env: TOX_ENV=py36-django30-elasticsearch7
python: 3.6
- env: TOX_ENV=py36-django31-elasticsearch7
python: 3.6
- env: TOX_ENV=py36-django22-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.6
- env: TOX_ENV=py36-django30-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.6
- env: TOX_ENV=py36-django31-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.6
- env: TOX_ENV=py37-django22-elasticsearch7
python: 3.7
- env: TOX_ENV=py37-django30-elasticsearch7
python: 3.7
- env: TOX_ENV=py37-django31-elasticsearch7
python: 3.7
- env: TOX_ENV=py37-django22-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.7
- env: TOX_ENV=py37-django30-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.7
- env: TOX_ENV=py37-django31-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.7
- env: TOX_ENV=py38-django22-elasticsearch7
python: 3.8
- env: TOX_ENV=py38-django30-elasticsearch7
python: 3.8
- env: TOX_ENV=py38-django31-elasticsearch7
python: 3.8
- env: TOX_ENV=py38-django22-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.8
- env: TOX_ENV=py38-django30-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.8
- env: TOX_ENV=py38-django31-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.8
- env: TOX_ENV=py39-django22-elasticsearch7
python: 3.9
- env: TOX_ENV=py39-django30-elasticsearch7
python: 3.9
- env: TOX_ENV=py39-django31-elasticsearch7
python: 3.9
- env: TOX_ENV=py39-django22-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.9
- env: TOX_ENV=py39-django30-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.9
- env: TOX_ENV=py39-django31-elasticsearch6 ES_APT_URL=https://artifacts.elastic.co/packages/6.x/apt
python: 3.9
env:
global:
- ES_APT_URL=https://artifacts.elastic.co/packages/7.x/apt
before_install:
# - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb && sudo dpkg -i --force-confnew elasticsearch-6.5.4.deb && sudo service elasticsearch restart
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo "deb $ES_APT_URL stable main" | sudo tee -a /etc/apt/sources.list.d/elk.list
- sudo apt-get remove --purge elasticsearch -y
- sudo apt-get update && sudo apt-get install elasticsearch -y
- sudo -i service elasticsearch restart
install: pip install -r examples/requirements/test.txt
before_script:
- sleep 10
script: travis_retry tox -e $TOX_ENV
after_success:
- pip install coveralls
- coveralls