23 lines
507 B
Ruby
Raw Normal View History

2015-10-02 18:14:19 -03:00
require "bundler/gem_tasks"
require "rubocop/rake_task"
require "rspec/core/rake_task"
2015-10-02 18:14:19 -03:00
require "pathname"
require "fileutils"
2016-02-23 12:38:27 +02:00
require "overcommit"
2014-12-03 11:30:26 +02:00
2015-03-26 15:33:56 +02:00
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:rspec)
2015-10-02 18:14:19 -03:00
task :create_man do |_t|
os_prefix = "/usr/local"
man_prefix = Pathname("#{os_prefix}/share/man/man1")
man_pages = "man/git-*"
Pathname.glob(man_pages) do |path|
FileUtils.cp(path, man_prefix + path.basename)
end
end
task checks: [:rubocop, :rspec]
task default: [:checks, :create_man]