Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from sul-dlss/badges
Browse files Browse the repository at this point in the history
add badges, coveralls, etc
  • Loading branch information
peetucket authored Feb 26, 2018
2 parents 85aa082 + fcabd9e commit 348e3d5
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 57 deletions.
1 change: 0 additions & 1 deletion .rvmrc.example

This file was deleted.

3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
notifications:
email: false

language: ruby
rvm:
- 2.2.4
- 2.3.1
- 2.4.3
- 2.5.0
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ source "http://rubygems.org"
gem 'nokogiri', '<1.6' if RUBY_VERSION < '1.9'
# Dependencies are defined in jhove-service.gemspec
gemspec

gem 'rcov', :platform => :mri_18
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{<img src="https://travis-ci.org/sul-dlss/jhove-service.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/sul-dlss/jhove-service]
{<img src="https://coveralls.io/repos/github/sul-dlss/jhove-service/badge.svg" alt="Coverage Status" />}[https://coveralls.io/github/sul-dlss/jhove-service]
{<img src="https://gemnasium.com/badges/github.com/sul-dlss/jhove-service.svg" alt="Dependency Status" />}[https://gemnasium.com/github.com/sul-dlss/jhove-service]
{<img src="https://badge.fury.io/rb/jhove-service.svg" alt="Gem Version" />}[https://badge.fury.io/rb/jhove-service]

= jhove-service

Expand Down
19 changes: 0 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
require 'rubygems'
require 'rake'
require 'bundler'
require 'bundler/gem_tasks'

Dir.glob('lib/tasks/*.rake').each { |r| import r }

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
Expand All @@ -17,24 +13,9 @@ require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/unit_tests/**/*.rb'
spec.rcov = true
spec.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data}
end

task :clean do
puts 'Cleaning old coverage'
FileUtils.rm('coverage.data') if(File.exists? 'coverage.data')
FileUtils.rm_r('coverage') if(File.exists? 'coverage')
puts 'Cleaning .yardoc and doc folders'
FileUtils.rm_r('.yardoc') if(File.exists? '.yardoc')
FileUtils.rm_r('doc') if(File.exists? 'doc')
puts 'Cleaning spec/fixtures/target'
FileUtils.rm_r('spec/fixtures/target') if(File.exists? 'spec/fixtures/target')

end

task :default => [:spec]

3 changes: 1 addition & 2 deletions jhove-service.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ Gem::Specification.new do |s|
# It will not add these as dependencies if you require lyber-utils for other projects
s.add_development_dependency "equivalent-xml", ">=0.2.2"
s.add_development_dependency "rake", ">=0.8.7"
s.add_development_dependency "rdoc"
s.add_development_dependency "rspec"
s.add_development_dependency "yard"
s.add_development_dependency 'coveralls'

s.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE.rdoc README.rdoc)
s.require_path = 'lib'
Expand Down
31 changes: 0 additions & 31 deletions lib/tasks/yard.rake

This file was deleted.

10 changes: 8 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

require 'rubygems'
require 'rspec'
require 'coveralls'
Coveralls.wear!

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
add_filter 'spec'
end

require 'rspec/matchers' # req by equivalent-xml custom matcher `be_equivalent_to`
require 'equivalent-xml'

Expand Down

0 comments on commit 348e3d5

Please sign in to comment.