diff options
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 2282e69..b5b5fab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,20 +16,21 @@ services: - redis-server before_install: + # Specifically target older Bundler - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v '< 2' # 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 find /etc/default/elasticsearch /etc/elasticsearch -ls - - sudo cat /etc/default/elasticsearch + # Stop before install - sudo service elasticsearch stop + # Install - sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb - - sudo find /etc/default/elasticsearch /etc/elasticsearch -ls - - sudo cat /etc/default/elasticsearch + # Fix permissions from install - sudo chmod 0644 /etc/default/elasticsearch - - sudo service elasticsearch start || ( sudo service elasticsearch status ; sudo journalctl -xe ; exit 1 ) + # Start up again or fail + - sudo service elasticsearch start && sudo service elasticsearch status || ( sudo journalctl -xe ; exit 1 ) before_script: - cp config/secrets.yml.dist config/secrets.yml |