forked from django-es/django-elasticsearch-dsl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
56 lines (47 loc) · 1.64 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
# Config file for automatic testing at travis-ci.org
language: python
python: 3.7
dist: xenial # default "precise" distro doesn't include Java 8 for Elasticsearch 5
matrix:
include:
- env: TOX_ENV=py36-django-110-es6
python: 3.6
- env: TOX_ENV=py37-django-110-es6
python: 3.7
- env: TOX_ENV=py27-django-110-es6
python: 2.7
- env: TOX_ENV=py36-django-111-es6
python: 3.6
- env: TOX_ENV=py37-django-111-es6
python: 3.7
- env: TOX_ENV=py27-django-111-es6
python: 2.7
- env: TOX_ENV=py36-django-2-es6
python: 3.6
- env: TOX_ENV=py37-django-2-es6
python: 3.7
- env: TOX_ENV=py37-django-21-es6
python: 3.7
- env: TOX_ENV=py37-django-22-es6
python: 3.7
cache: pip
env:
global:
- ES_APT_URL=https://artifacts.elastic.co/packages/7.x/apt
before_install:
# work around https://github.com/travis-ci/travis-ci/issues/8363
- pip install codecov
- 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
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements_test.txt
# sleep for elasticsearch
before_script:
- wget -q --waitretry=1 --retry-connrefused -T 100 -O - http://127.0.0.1:9200
# command to run tests using coverage, e.g. python setup.py test
script: tox -e $TOX_ENV -- --elasticsearch
after_success:
- codecov -e $TOX_ENV