forked from fakefs/fakefs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
32 lines (26 loc) · 755 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'bump/tasks'
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*test.rb']
t.verbose = true
t.warning = true
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = '--warnings'
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
task default: File.read('.travis.yml').scan(/TASK=(\w+)/).flatten
desc 'Update contributors'
task :update_contributors do
git_rank_contributors = File.expand_path('etc/git-rank-contributors', __dir__)
sh "#{git_rank_contributors} > CONTRIBUTORS && git add CONTRIBUTORS"
end
namespace :bump do
Bump::Bump::BUMPS.each do |step|
task step => :update_contributors
end
end