Skip to content

Commit e5d8bf9

Browse files
committed
Fix Travis before script
1 parent 3e10039 commit e5d8bf9

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ matrix:
3939

4040
env:
4141
global:
42-
- ELASTICSEARCH_VERSION=7.0.0
42+
- ELASTICSEARCH_VERSION=7.0.0-beta1
4343
- TEST_CLUSTER_PORT=9250
4444
- QUIET=true
4545

4646
before_install:
47-
- ELASTICSEARCH_VERSION=7.0.0 TEST_CLUSTER_PORT=9250 source ./travis_before_script.sh
47+
- TEST_CLUSTER_PORT=9250 source ./travis_before_script.sh
4848
- gem update --system
4949
- gem update bundler
5050
- gem --version

travis_before_script.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
#!/bin/bash
22

3-
metadata_url="https://artifacts-api.elastic.co/v1/branches/master/builds/latest/projects/elasticsearch/packages/elasticsearch-${ELASTICSEARCH_VERSION}-SNAPSHOT.zip/file"
4-
echo "Getting snapshot location from $metadata_url"
5-
6-
url=$(curl -v $metadata_url 2>&1 | grep -Pio 'location: \K(.*)' | tr -d '\r')
7-
8-
echo "Downloading Elasticsearch from $url"
9-
curl $url -o /tmp/elasticsearch.zip
10-
11-
echo 'Unzipping file'
12-
unzip -q /tmp/elasticsearch.zip
3+
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}-linux-x86_64.tar.gz | tar xz -C /tmp
134

145
echo "Starting elasticsearch on port ${TEST_CLUSTER_PORT}"
15-
${PWD}/elasticsearch-${ELASTICSEARCH_VERSION}-SNAPSHOT/bin/elasticsearch -E http.port=${TEST_CLUSTER_PORT} &> /dev/null &
6+
/tmp/elasticsearch-${ELASTICSEARCH_VERSION}/bin/elasticsearch -E http.port=${TEST_CLUSTER_PORT} &> /dev/null &

0 commit comments

Comments
 (0)