Skip to content

Commit

Permalink
Updated CI settings for Travis/Coveralls/Undercover-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Jun 26, 2020
1 parent 5821ad3 commit a48a7e8
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 71 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -47,3 +47,6 @@ pkg

# For rubinius:
#*.rbc

# Gladiator (Glimmer Editor)
.gladiator
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
ruby-2.2.10
ruby-2.7.1
28 changes: 3 additions & 25 deletions .travis.yml
Expand Up @@ -4,28 +4,6 @@ rvm:
- 2.6.6
- 2.5.8
- 2.4.10
- 2.3.8
- 2.2.10
- 2.1.5
- 2.0.0
gemfile:
- Gemfile
- ruby200-215.Gemfile
matrix:
exclude:
- rvm: 2.7.1
gemfile: ruby200-215.Gemfile
- rvm: 2.6.6
gemfile: ruby200-215.Gemfile
- rvm: 2.5.8
gemfile: ruby200-215.Gemfile
- rvm: 2.4.10
gemfile: ruby200-215.Gemfile
- rvm: 2.3.8
gemfile: Gemfile
- rvm: 2.2.10
gemfile: Gemfile
- rvm: 2.1.5
gemfile: Gemfile
- rvm: 2.0.0
gemfile: Gemfile
after_script:
ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- --repo AndyObtiva/puts_debuggerer --commit $TRAVIS_COMMIT --lcov coverage/lcov/puts_debuggerer.lcov

22 changes: 12 additions & 10 deletions Gemfile
@@ -1,18 +1,20 @@
source "https://rubygems.org"
source 'https://rubygems.org'
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"
# gem 'activesupport', '>= 2.3.5'

gem "awesome_print", "~> 1.8.0"
gem 'awesome_print', '~> 1.8.0'

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rspec", "~> 3.5.0"
gem "rspec-mocks", "~> 3.5.0"
gem "rdoc", "~> 3.12"
gem "jeweler", "~> 2.3.9"
gem "bundler", "~> 2.1.4"
gem "coveralls", "= 0.8.5", require: false
gem "simplecov", "~> 0.10.0", require: nil
gem 'rspec', '~> 3.5.0'
gem 'rspec-mocks', '~> 3.5.0'
gem 'rdoc', '~> 3.12'
gem 'jeweler', '~> 2.3.9'
gem 'bundler', '~> 2.1.4'
gem 'coveralls', '= 0.8.23', require: false
gem 'simplecov', '~> 0.16.1', require: nil
gem 'simplecov-lcov', '~> 0.7.0', require: nil
gem 'undercover', '~> 0.3.4', require: false
end
52 changes: 27 additions & 25 deletions Gemfile.lock
Expand Up @@ -2,20 +2,19 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.4.0)
ast (2.4.1)
awesome_print (1.8.0)
builder (3.2.4)
coveralls (0.8.5)
json (~> 1.8)
rest-client (>= 1.6.8, < 2)
simplecov (~> 0.10.0)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
docile (1.1.5)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
diff-lcs (1.4.2)
docile (1.3.2)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
git (1.7.0)
Expand All @@ -29,8 +28,8 @@ GEM
oauth2 (~> 1.0)
hashie (4.1.0)
highline (2.0.3)
http-cookie (1.0.3)
domain_name (~> 0.5)
imagen (0.1.8)
parser (>= 2.5, != 2.5.1.1)
jeweler (2.3.9)
builder
bundler
Expand All @@ -49,7 +48,6 @@ GEM
multi_json (1.14.1)
multi_xml (0.6.0)
multipart-post (2.1.1)
netrc (0.11.0)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
oauth2 (1.4.4)
Expand All @@ -58,16 +56,15 @@ GEM
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
parser (2.7.1.4)
ast (~> 2.4.1)
psych (3.1.0)
rack (2.2.3)
rainbow (3.0.0)
rake (13.0.1)
rchardet (1.8.0)
rdoc (3.12.2)
json (~> 1.4)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
Expand All @@ -81,35 +78,40 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rugged (1.0.1)
semver2 (3.4.2)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
simplecov-lcov (0.7.0)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (0.19.4)
thor (1.0.1)
thread_safe (0.3.6)
tins (1.25.0)
sync
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
undercover (0.3.4)
imagen (>= 0.1.8)
rainbow (>= 2.1, < 4.0)
rugged (>= 0.27, < 1.1)

PLATFORMS
ruby

DEPENDENCIES
awesome_print (~> 1.8.0)
bundler (~> 2.1.4)
coveralls (= 0.8.5)
coveralls (= 0.8.23)
jeweler (~> 2.3.9)
rdoc (~> 3.12)
rspec (~> 3.5.0)
rspec-mocks (~> 3.5.0)
simplecov (~> 0.10.0)
simplecov (~> 0.16.1)
simplecov-lcov (~> 0.7.0)
undercover (~> 0.3.4)

BUNDLED WITH
2.1.4
21 changes: 11 additions & 10 deletions spec/spec_helper.rb
@@ -1,13 +1,14 @@
if RUBY_VERSION >= '2.3' && !defined?(Rubinius)
begin
require 'coveralls'
Coveralls.wear!
rescue LoadError, StandardError => e
#no op to support Rubies that do not support Coveralls
puts 'Error loading Coveralls'
puts e.message
puts e.backtrace.join("\n")
end
require 'simplecov'
require 'simplecov-lcov'
require 'coveralls' if ENV['TRAVIS']

SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
formatters = []
formatters << SimpleCov::Formatter::LcovFormatter
formatters << Coveralls::SimpleCov::Formatter if ENV['TRAVIS']
SimpleCov.formatters = formatters
SimpleCov.start do
add_filter(/^\/spec\//)
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
Expand Down

0 comments on commit a48a7e8

Please sign in to comment.