Skip to content

Commit 73be547

Browse files
joaojuniorElSaico
authored andcommitted
Install elasticsearch2.0 via apt
1 parent a2ec3a4 commit 73be547

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,17 @@ addons:
2626

2727
before_install:
2828
- mkdir -p $HOME/download-cache
29+
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
2930
- >
3031
if [[ $VERSION_ES == '>=2.0.0,<3.0.0' ]];
3132
then
32-
wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.2.1/elasticsearch-2.2.1.tar.gz
33-
tar zxf elasticsearch-2.2.1.tar.gz
34-
elasticsearch-2.2.1/bin/elasticsearch -d -Dhttp.port=9200
33+
echo "deb http://packages.elastic.co/elasticsearch/2.0/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.0.list
3534
else
36-
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
3735
echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
38-
sudo apt-get update
39-
sudo apt-get -y install elasticsearch
40-
sudo service elasticsearch restart
4136
fi
37+
- sudo apt-get update
38+
- sudo apt-get -y install elasticsearch
39+
- sudo service elasticsearch restart
4240

4341
install:
4442
- pip install --upgrade setuptools

0 commit comments

Comments
 (0)