diff options
author | 2019-12-19 23:30:16 -0800 | |
---|---|---|
committer | 2019-12-19 23:30:16 -0800 | |
commit | de5a5755613e89f9d2763ca181828c30fbab2be3 (patch) | |
tree | 768e942042fe32c80582f6707b5bd87cccbbfefc | |
parent | rubocop: tweak Naming/UncommunicativeMethodParamName for common meaningful sh... (diff) | |
download | packages-5-de5a5755613e89f9d2763ca181828c30fbab2be3.tar.gz packages-5-de5a5755613e89f9d2763ca181828c30fbab2be3.tar.bz2 packages-5-de5a5755613e89f9d2763ca181828c30fbab2be3.zip |
travis: ES is fixed, cleanup testing
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-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 |