From c24c4bcf98795c33668f03f5cd2f850923beb8bb Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 18 Oct 2016 14:29:47 -0700 Subject: [PATCH] Test against ES 5.0 rc1 --- .travis.yml | 4 ++-- test/ci/before_install.sh | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a43b813..6caedef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ gemfile: - test/gemfiles/mongoid4.gemfile - test/gemfiles/mongoid5.gemfile env: - - ELASTICSEARCH_VERSION=2.4.0 + - ELASTICSEARCH_VERSION=2.4.1 matrix: include: - gemfile: Gemfile @@ -34,7 +34,7 @@ matrix: - gemfile: Gemfile env: ELASTICSEARCH_VERSION=2.0.0 - gemfile: Gemfile - env: ELASTICSEARCH_VERSION=5.0.0-beta1 + env: ELASTICSEARCH_VERSION=5.0.0-rc1 # - gemfile: test/gemfiles/nobrainer.gemfile # env: NOBRAINER=true allow_failures: diff --git a/test/ci/before_install.sh b/test/ci/before_install.sh index df42974..2af8e45 100755 --- a/test/ci/before_install.sh +++ b/test/ci/before_install.sh @@ -1,12 +1,16 @@ #!/usr/bin/env bash +set -e + gem install bundler sudo apt-get purge elasticsearch if [[ $ELASTICSEARCH_VERSION == 1* ]]; then wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb -else +elif [[ $ELASTICSEARCH_VERSION == 2* ]]; then wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ELASTICSEARCH_VERSION/elasticsearch-$ELASTICSEARCH_VERSION.deb +else + wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb fi sudo dpkg -i elasticsearch-$ELASTICSEARCH_VERSION.deb sudo service elasticsearch start -- libgit2 0.21.0