File: Rakefile

package info (click to toggle)
ruby-openid-connect 1.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 476 kB
  • sloc: ruby: 2,995; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

namespace :coverage do
  desc "Open coverage report"
  task :report do
    require 'simplecov'
    `open "#{File.join SimpleCov.coverage_path, 'index.html'}"`
  end
end

task :spec do
  Rake::Task[:'coverage:report'].invoke unless ENV['TRAVIS_RUBY_VERSION']
end

task :default => :spec