Permalink
Browse files

Fix elasticsearch for Travis CI builds (#913)

* Change elasticsearch settings (index.store.type and path.data).
* Add -f option to apt-get purge
  • Loading branch information...
mscam committed Jul 14, 2017
1 parent f54698a commit e76048ee4900b776faff8efaa799c7fab6431734
Showing with 3 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +2 −1 scripts/elastic.sh
@@ -50,7 +50,7 @@ cache:
before_install:
- sudo apt-get -qq update --allow-unauthenticated
- sudo apt-get purge elasticsearch
- sudo apt-get purge -f elasticsearch
- sudo apt-get install -t stable elasticsearch
- nvm install --lts node
- nvm use node
@@ -1,8 +1,9 @@
#!/bin/bash
sudo mkdir /var/backups/es-backups
sudo chown elasticsearch:elasticsearch /var/backups/es-backups
echo "path.data: \"/tmp\"" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "path.repo: [\"/var/backups/es-backups\"]" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "index.store.type: memory" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "index.store.type: default" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "node.name: \"test_node\"" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "network.host: 0.0.0.0" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
echo "http.port: 9200" | sudo tee -a /etc/elasticsearch/elasticsearch.yml

0 comments on commit e76048e

Please sign in to comment.