language: ruby cache: bundler rvm: - 2.5 gemfiles: - Gemfile - Gemfile.ci # rails 5 branches: only: - master services: - elasticsearch - redis-server before_install: - 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 - sudo service elasticsearch stop - sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb - sudo find /etc/default/elasticsearch /etc/elasticsearch -ls - sudo cat /etc/default/elasticsearch - sudo chmod 0644 /etc/default/elasticsearch - sudo service elasticsearch start || ( sudo service elasticsearch status ; sudo journalctl -xe ; exit 1 ) before_script: - cp config/secrets.yml.dist config/secrets.yml # Wait for Elasticsearch - sleep 10 # Check ES output! - curl --connect-timeout 1 -o - 'http://127.0.0.1:9200/_cat/health?format=json&v&pretty' script: - bundle exec rubocop - bundle exec rake kkuleomi:index:init RAILS_ENV=test # vim:ft=yaml et ts=2 sts=2 sw=2: