-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
77 lines (69 loc) · 2.39 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
sudo: true
language: python
python:
- 2.7
- 3.4
- 3.5
- 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:
- mkdir -p $HOME/download-cache
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- >
if [[ $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
elif [[ $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
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
fi
- sudo apt-get update
- sudo apt-get -y install oracle-java8-installer elasticsearch
- sudo service elasticsearch restart
install:
- pip install --upgrade setuptools
- pip install requests "Django${DJANGO_VERSION}" "elasticsearch${VERSION_ES}"
- python setup.py clean build install
script:
- python setup.py test
env:
matrix:
- DJANGO_VERSION=">=1.8,<1.9" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.9,<1.10" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.10,<1.11" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.8,<1.9" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.9,<1.10" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.10,<1.11" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=1.8,<1.9" VERSION_ES=">=5.0.0,<6.0.0"
- DJANGO_VERSION=">=1.9,<1.10" VERSION_ES=">=5.0.0,<6.0.0"
- DJANGO_VERSION=">=1.10,<1.11" VERSION_ES=">=5.0.0,<6.0.0"
matrix:
allow_failures:
- python: 'pypy'
# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: CraveFood
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: CraveFood/django-haystack-elasticsearch
condition: $TOXENV == py27