Skip to content

Commit

Permalink
Use a supported version of Elasticsearch (< 1)
Browse files Browse the repository at this point in the history
This avoids lots of errors in the test output on Travis. This might
look like a strangely complicated way of getting a particular version of
Elasticearch, but it's actually what's recommended by Travis for the
container-based builds on trusty:

  https://docs.travis-ci.com/user/database-setup/#Installing-ElasticSearch-on-trusty-container-based-infrastructure
  • Loading branch information
mhl committed Sep 7, 2017
1 parent 0a43e28 commit 8353235
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Expand Up @@ -6,9 +6,6 @@ notifications:
language: python
cache: pip

services:
- elasticsearch

addons:
postgresql: "9.6"
apt:
Expand All @@ -17,6 +14,9 @@ addons:
- postgresql-9.6-postgis-2.3

install:
- wget ${ES_DOWNLOAD_URL}
- tar xzf elasticsearch-${ES_VERSION}.tar.gz
- elasticsearch-${ES_VERSION}/bin/elasticsearch &
- pip install -U pip
- bundle update json
- bundle install --deployment --path ../gems --binstubs ../gem-bin
Expand All @@ -39,8 +39,12 @@ before_script:
- ./manage.py collectstatic --noinput

script:
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
- ./run-tests --coverage

after_success:
- coveralls
- ocular --data-file ".coverage"

env:
- ES_VERSION=0.90.13 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz

0 comments on commit 8353235

Please sign in to comment.