Skip to content

Commit 3037fff

Browse files
ignacio-chiazzoalexrudall
authored andcommitted
set up rake file tasks
1 parent 866c72e commit 3037fff

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Rakefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
require "bundler/gem_tasks"
22
require "rspec/core/rake_task"
3+
require "rubocop/rake_task"
34

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

6-
task default: :spec
7+
task :default do
8+
Rake::Task["test"].invoke
9+
Rake::Task["lint"].invoke
10+
end
11+
12+
task :test do
13+
Rake::Task["spec"].invoke
14+
end
15+
16+
task :lint do
17+
RuboCop::RakeTask.new(:rubocop)
18+
Rake::Task["rubocop"].invoke
19+
end

0 commit comments

Comments
 (0)