services: - mongodb language: ruby cache: bundler script: - bundle exec rspec rvm: - 2.3.8 - 2.4.5 - 2.5.4 - 2.6.2 - jruby-9.1.17.0 - jruby-9.2.6.0 env: - MONGOID_VERSION=5 - MONGOID_VERSION=6 - MONGOID_VERSION=7 matrix: include: - rvm: 2.6.2 env: - MONGOID_VERSION=7 - COVERAGE=true before_script: - bundle exec rubocop - bundle exec danger after_script: - if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter; ./cc-test-reporter before-build; ./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.json coverage/.resultset.json; ./cc-test-reporter upload-coverage; fi - rvm: ruby-head - rvm: jruby-head fast_finish: true allow_failures: - rvm: ruby-head - rvm: jruby-head bundler_args: --without development