From 4dba40a461b624adbe1e435897b1295af1666601 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 19 Dec 2019 17:53:50 -0800 Subject: travis: improve ES startup Signed-off-by: Robin H. Johnson --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 387465c..dc83824 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,14 @@ services: before_install: - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v '< 2' - - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-amd64.deb && sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb && sudo service elasticsearch restart - + # https://docs.travis-ci.com/user/database-setup/#elasticsearch + - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-amd64.deb + # Verify checksum + - echo e566a88e15d8f85cf793c8f971b51eeae6465a0aa73f968ae4b1ee6aa71e4c20 elasticsearch-7.5.1-amd64.deb | sha256sum -c + - sudo service elasticsearch stop + - sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb + - rm -f elasticsearch-7.5.1-amd64.deb + - sudo service elasticsearch start || systemctl status elasticsearch.service before_script: - cp config/secrets.yml.dist config/secrets.yml -- cgit v1.2.3-65-gdbad