.travis.yml in mongoid-locker-1.0.0 vs .travis.yml in mongoid-locker-1.0.1

- old
+ new

@@ -9,28 +9,54 @@ - gem update --system - gem install bundler matrix: include: - - rvm: 2.3.6 + - rvm: 2.3.8 env: MONGOID_VERSION=4 - - rvm: 2.3.6 + - rvm: 2.3.8 env: MONGOID_VERSION=5 - - rvm: 2.3.6 + - rvm: 2.3.8 env: MONGOID_VERSION=6 - - rvm: 2.4.3 + - rvm: 2.4.5 env: MONGOID_VERSION=6 - - rvm: 2.4.3 + - rvm: 2.4.5 env: MONGOID_VERSION=7 - - rvm: 2.5.0 + - rvm: 2.5.3 env: MONGOID_VERSION=7 - before_script: - - bundle exec danger - - rvm: rbx-2 + before_script: bundle exec danger + - rvm: jruby-9.1.17.0 + env: MONGOID_VERSION=4 + - rvm: jruby-9.1.17.0 + env: MONGOID_VERSION=5 + - rvm: jruby-9.1.17.0 + env: MONGOID_VERSION=6 + - rvm: jruby-9.2.4.0 + env: MONGOID_VERSION=6 + - rvm: jruby-9.2.4.0 + env: MONGOID_VERSION=7 + - name: Code Climate Test Coverage + rvm: 2.3.8 + env: COVERAGE=true + script: + - 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 + - for version in 4 5 6 7; do + MONGOID_VERSION=$version bundle update; + bundle exec rake; + ./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.mongoid${version}.json; + done + - if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then + ./cc-test-reporter sum-coverage coverage/codeclimate.mongoid*.json -p 4; + ./cc-test-reporter upload-coverage; + fi - rvm: ruby-head - rvm: jruby-head + fast_finish: true allow_failures: - rvm: ruby-head + - rvm: jruby-9.1.17.0 + - rvm: jruby-9.2.4.0 - rvm: jruby-head - - rvm: rbx-2 bundler_args: --without development