1
0
Fork 0
mirror of https://github.com/nov/fb_graph2 synced 2023-03-27 23:22:15 -04:00
fb_graph2/Rakefile

18 lines
379 B
Ruby
Raw Normal View History

2014-05-03 05:56:42 -04:00
require 'bundler/gem_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