Skip to content

Commit

Permalink
[TEST] Download artifacts directly, migrate off esvm
Browse files Browse the repository at this point in the history
esvm is no longer maintained (or only sporadically), so move to the
direct artifacts.  Not a good long-term solution since we can't (easily)
get the most recent patch release in each branch, but is better than
being stuck at 6.3 with esvm.
  • Loading branch information
polyfractal committed Jan 8, 2019
1 parent 98a372c commit 1e9f06c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,27 @@ matrix:
fast_finish: true
include:
- php: 7.0
env: ES_VERSION="6.5"
env: ES_VERSION="6.5.0"

- php: 7.1
env: ES_VERSION="6.5"
env: ES_VERSION="6.5.0"

- php: 7.2
env: ES_VERSION="6.5"
env: ES_VERSION="6.5.0"

- php: 7.3
env: ES_VERSION="6.0"
env: ES_VERSION="6.0.0"
- php: 7.3
env: ES_VERSION="6.1"
env: ES_VERSION="6.1.0"
- php: 7.3
env: ES_VERSION="6.2"
env: ES_VERSION="6.2.0"
- php: 7.3
env: ES_VERSION="6.3"
env: ES_VERSION="6.3.0"
- php: 7.3
env: ES_VERSION="6.4"
env: ES_VERSION="6.4.0"
- php: 7.3
env: ES_VERSION="6.5"
- php: 7.3
env: ES_VERSION="6.x"
env: ES_VERSION="6.5.0"

allow_failures:
- env: ES_VERSION="6.x"

env:
global:
Expand Down
8 changes: 4 additions & 4 deletions travis/download_and_run_es.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ which java
java -version


echo "Downloading Elasticsearch v${ES_VERSION}-SNAPSHOT..."
echo "Downloading Elasticsearch v${ES_VERSION}..."

ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip")
ES_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"

curl -L -o elasticsearch-latest-SNAPSHOT.zip $ES_URL
unzip "elasticsearch-latest-SNAPSHOT.zip"
curl -L -o elasticsearch-latest.tar.gz $ES_URL
tar -xvfz "elasticsearch-latest.tar.gz"

echo "Adding repo to config..."
find . -name "elasticsearch.yml" | while read TXT ; do echo 'repositories.url.allowed_urls: ["http://*"]' >> $TXT ; done
Expand Down

0 comments on commit 1e9f06c

Please sign in to comment.