Permalink
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (69 sloc) 2.19 KB
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
cache:
apt: true
pip: true
directories:
- $HOME/download-cache
jdk:
- oraclejdk8
addons:
apt_packages:
- binutils
- default-jdk
- gdal-bin
- libgdal1h
- libgeos-c1
- libproj-dev
- libxapian22
- python-xapian
- wajig
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 [[ $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
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 setuptools
- 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
- python setup.py test
env:
matrix:
- DJANGO_VERSION=">=1.11,<2.0" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=1.0.0,<2.0.0"
- DJANGO_VERSION=">=1.11,<2.0" VERSION_ES=">=2.0.0,<3.0.0"
- DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=2.0.0,<3.0.0"
matrix:
allow_failures:
- python: 'pypy'
exclude:
- python: 2.7
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=2.0.0,<3.0.0"
- python: 2.7
env: DJANGO_VERSION=">=2.0,<2.1" VERSION_ES=">=1.0.0,<2.0.0"
notifications:
irc: "irc.freenode.org#haystack"
email: false