Commit c24c4bcf98795c33668f03f5cd2f850923beb8bb

Authored by Andrew Kane
1 parent c1957636

Test against ES 5.0 rc1

Showing 2 changed files with 7 additions and 3 deletions   Show diff stats
@@ -24,7 +24,7 @@ gemfile: @@ -24,7 +24,7 @@ gemfile:
24 - test/gemfiles/mongoid4.gemfile 24 - test/gemfiles/mongoid4.gemfile
25 - test/gemfiles/mongoid5.gemfile 25 - test/gemfiles/mongoid5.gemfile
26 env: 26 env:
27 - - ELASTICSEARCH_VERSION=2.4.0 27 + - ELASTICSEARCH_VERSION=2.4.1
28 matrix: 28 matrix:
29 include: 29 include:
30 - gemfile: Gemfile 30 - gemfile: Gemfile
@@ -34,7 +34,7 @@ matrix: @@ -34,7 +34,7 @@ matrix:
34 - gemfile: Gemfile 34 - gemfile: Gemfile
35 env: ELASTICSEARCH_VERSION=2.0.0 35 env: ELASTICSEARCH_VERSION=2.0.0
36 - gemfile: Gemfile 36 - gemfile: Gemfile
37 - env: ELASTICSEARCH_VERSION=5.0.0-beta1 37 + env: ELASTICSEARCH_VERSION=5.0.0-rc1
38 # - gemfile: test/gemfiles/nobrainer.gemfile 38 # - gemfile: test/gemfiles/nobrainer.gemfile
39 # env: NOBRAINER=true 39 # env: NOBRAINER=true
40 allow_failures: 40 allow_failures:
test/ci/before_install.sh
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 2
  3 +set -e
  4 +
3 gem install bundler 5 gem install bundler
4 6
5 sudo apt-get purge elasticsearch 7 sudo apt-get purge elasticsearch
6 if [[ $ELASTICSEARCH_VERSION == 1* ]]; then 8 if [[ $ELASTICSEARCH_VERSION == 1* ]]; then
7 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb 9 wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb
8 -else 10 +elif [[ $ELASTICSEARCH_VERSION == 2* ]]; then
9 wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ELASTICSEARCH_VERSION/elasticsearch-$ELASTICSEARCH_VERSION.deb 11 wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/$ELASTICSEARCH_VERSION/elasticsearch-$ELASTICSEARCH_VERSION.deb
  12 +else
  13 + wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb
10 fi 14 fi
11 sudo dpkg -i elasticsearch-$ELASTICSEARCH_VERSION.deb 15 sudo dpkg -i elasticsearch-$ELASTICSEARCH_VERSION.deb
12 sudo service elasticsearch start 16 sudo service elasticsearch start