diff options
Diffstat (limited to '.travis/travis.yml')
-rw-r--r-- | .travis/travis.yml | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/.travis/travis.yml b/.travis/travis.yml deleted file mode 100644 index 9330a58..0000000 --- a/.travis/travis.yml +++ /dev/null @@ -1,55 +0,0 @@ -language: ruby -dist: bionic -cache: bundler -rvm: - - 2.5.7 - -gemfiles: - - Gemfile - - Gemfile.ci # rails 5 - -branches: - only: - - master - -services: - - elasticsearch - - 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 - # Stop before install - - sudo service elasticsearch stop - # Install - - sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb - # Fix permissions from install - - sudo chmod 0644 /etc/default/elasticsearch - # Shave startup time - - echo ES_STARTUP_SLEEP_TIME=1 | sudo tee -a /etc/default/elasticsearch >/dev/null - # 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 - - cp config/initializers/kkuleomi_config.rb.test config/initializers/kkuleomi_config.rb - # Wait for Elasticsearch - # If it starts up in less than 10 seconds, this wins! - - curl --retry-delay 1 --retry-connrefused --retry 10 --connect-timeout 1 --max-time 15 -o - 'http://127.0.0.1:9200/_cat/health?format=json&v&pretty' - -script: - # This code needs style improvements before higher strictness in lint. - - bundle exec rubocop --fail-level E - # Steps from bin/test.sh - - bundle exec rake tmp:create RAILS_ENV=test - - bundle exec rake assets:precompile RAILS_ENV=test - - bundle exec rake kkuleomi:index:init RAILS_ENV=test - - bundle exec rake kkuleomi:update:all RAILS_ENV=test - - bundle exec rake test test/ RAILS_ENV=test - -# vim:ft=yaml et ts=2 sts=2 sw=2:
\ No newline at end of file |