Commit 72aa18e6 by Tim Babych

download elasticsearch binaries

parent 8dc87c60
language: python
python: 2.7
sudo: false
services:
- elasticsearch
install:
- scripts/travis/install.sh
- scripts/travis/setup.sh
- pip install -r requirements/test.txt
- git fetch origin master:refs/remotes/origin/master # https://github.com/edx/diff-cover#troubleshooting
- pip install coveralls
......
#!/bin/bash
# Installs Elasticsearch
#
# Requires ESVER environment variable to be set.
set -e
echo "Installing Elasticsearch $ESVER" >&2
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ESVER.tar.gz
tar xzvf elasticsearch-$ESVER.tar.gz
#!/bin/bash
# Runs Elasticsearch
#
# Requires ESVER environment variable to be set.
# cwd is the git repository root.
set -e
echo "Starting Elasticsearch $ESVER" >&2
pushd elasticsearch-$ESVER
# Elasticsearch 0.90 daemonizes automatically, but 1.0+ requires
# a -d argument.
if [[ $ESVER == 0* ]];
then
./bin/elasticsearch
else
echo "launching with -d option." >&2
./bin/elasticsearch -d
fi
popd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment