diff --git a/.travis.yml b/.travis.yml index 6e48ef4..d5c30e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ sudo: false +env: + global: + - CC_TEST_REPORTER_ID=08cc9393eac9c71ca424b4fc05b319c221b5723a4ffecbbe04599ffad1abf835 language: ruby rvm: - 2.1.10 @@ -6,4 +9,15 @@ rvm: - 2.3.6 - 2.4.3 - 2.5.0 -before_install: gem install bundler -v 1.16.1 +before_install: + - gem install bundler -v 1.16.1 +before_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 +script: + - bundle exec rspec +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT +notifications: + email: false diff --git a/README.md b/README.md index 20e670d..6e69da7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Rgversion [![Gem](https://img.shields.io/gem/v/rgversion.svg)](https://rubygems.org/gems/rgversion) [![Build Status](https://img.shields.io/travis/vavgustov/rgversion/master.svg)](https://travis-ci.org/vavgustov/rgversion) +# Rgversion [![Gem](https://img.shields.io/gem/v/rgversion.svg)](https://rubygems.org/gems/rgversion) [![Build Status](https://img.shields.io/travis/vavgustov/rgversion/master.svg)](https://travis-ci.org/vavgustov/rgversion) [![Maintainability](https://api.codeclimate.com/v1/badges/b5d59c13b4d649c321ea/maintainability)](https://codeclimate.com/github/vavgustov/rgversion/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/b5d59c13b4d649c321ea/test_coverage)](https://codeclimate.com/github/vavgustov/rgversion/test_coverage) This library allow you to quickly copy latest semantic versions of specified gems to your clipboard. Versions will be taken from [`rubygems.org`](https://rubygems.org/). Then you can past them in your `Gemfile`. ![image](https://user-images.githubusercontent.com/312873/28492511-d2dbf140-6f0d-11e7-9912-beb8b94a1ca7.png) diff --git a/rgversion.gemspec b/rgversion.gemspec index 6a5f3fc..80c357d 100644 --- a/rgversion.gemspec +++ b/rgversion.gemspec @@ -25,8 +25,9 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.16" - spec.add_development_dependency "rake", "~> 12.0" - spec.add_development_dependency "rspec", "~> 3.6" + spec.add_development_dependency "rake", "~> 12.3" + spec.add_development_dependency "rspec", "~> 3.7" + spec.add_development_dependency "simplecov", "~> 0.15" spec.add_runtime_dependency "nokogiri", "~> 1.8" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e9725dc..9c411d6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require "simplecov" +SimpleCov.start + require "bundler/setup" require "rgversion"