Skip to content

Commit

Permalink
Travis: Fix ElasticSearch installation
Browse files Browse the repository at this point in the history
Travis has updated Trusty container environment, now it provides
ElasticSearch 5.x and can't be simply replaced...

  sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install elasticsearch
  Reading package lists...
  Building dependency tree...
  Reading state information...
  elasticsearch is already the newest version (5.0.2).
  0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
  • Loading branch information
jirutka committed Jun 28, 2017
1 parent 8c9ec8e commit 20fe0e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Expand Up @@ -3,11 +3,6 @@ sudo: false
dist: trusty
addons:
postgresql: '9.5'
apt:
sources:
- elasticsearch-1.7
packages:
- elasticsearch
code_climate:
repo_token: a813ce884be14a158262d4e05906c0b6f4e7f4533c41cdf88bda7da84d88297f
cache:
Expand All @@ -18,11 +13,16 @@ rvm:
- ruby-head
services:
- postgresql
- elasticsearch
bundler_args: --without development doc
install:
# Travis provides only ElasticSearch 5.x, we must install legacy version ourself.
- "wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.tar.gz
&& echo '754b089ec0a1aae5b36b39391d5385ed7428d8f5 elasticsearch-1.7.3.tar.gz' | sha1sum -c
&& tar -xzf elasticsearch-*.tar.gz"
- bundle install --without development doc --jobs=3 --retry=3
before_script:
- while read line; do export $line; done < .env.test
- bundle exec rake --trace db:setup
- ./elasticsearch-*/bin/elasticsearch &
- echo 'waiting for elasticsearch to come up'; wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
after_success: |
if [ "$TRAVIS_BRANCH" = master ]; then
Expand Down

0 comments on commit 20fe0e4

Please sign in to comment.