sudo: false
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

install:
    - pip install requests "Django${DJANGO_VERSION}"
    - 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.8,<1.9"
        - DJANGO_VERSION=">=1.9,<1.10"
        - DJANGO_VERSION="==1.10a1"

matrix:
    allow_failures:
        - env: DJANGO_VERSION="==1.10a1"
        - python: 'pypy'

services:
    - elasticsearch

notifications:
    irc: "irc.freenode.org#haystack"
    email: false

sudo: false
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

install:
    - pip install --upgrade setuptools
    - pip install requests "Django${DJANGO_VERSION}"
    - 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.8,<1.9"
        - DJANGO_VERSION=">=1.9,<1.10"
        - DJANGO_VERSION="==1.10a1"

matrix:
    allow_failures:
        - env: DJANGO_VERSION="==1.10a1"
        - python: 'pypy'

services:
    - elasticsearch

notifications:
    irc: "irc.freenode.org#haystack"
    email: false

Upgrade setuptools in Travis so urllib3-1.18 installs
Upgrade setuptools in Travis so urllib3-1.18 installs

The version of setuptools in Travis is too old to handle <= as an
environment marker.

Signed-off-by: Jeremy Cline <b3f594e10a9edcf5413cf1190121d45078c62290@jcline.org>
