Skip to content

Commit 7fc6388

Browse files
joaojuniorElSaico
authored andcommitted
Install elasticsearch1.7 via apt
1 parent 0272b75 commit 7fc6388

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ before_install:
3333
tar zxf elasticsearch-2.2.1.tar.gz
3434
elasticsearch-2.2.1/bin/elasticsearch -d -Dhttp.port=9200
3535
else
36-
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
37-
tar zxf elasticsearch-1.7.5.tar.gz
38-
elasticsearch-1.7.5/bin/elasticsearch -d -Dhttp.port=9200
36+
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
37+
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
3941
fi
4042
4143
install:

0 commit comments

Comments
 (0)