Skip to content

Commit 290bb00

Browse files
committed
Added run:##, run:##:rb, and run:##:rkt tasks.
1 parent c51249e commit 290bb00

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

zenspider/2019/Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,18 @@ directory "input"
4343
Worker.template "../2017/template.rkt", desc_path, rack_path, day
4444
end
4545

46+
desc "Run #{day_s} ruby"
47+
task "run:#{day_s}" => ["run:#{day_s}:rb", "run:#{day_s}:rkt"]
48+
4649
desc "Run #{day_s} ruby"
4750
task "run:#{day_s}:rb" do
48-
sh "ruby ./#{day_s}.rb input/#{day_s}.txt"
51+
sh "time ruby ./#{day_s}.rb input/#{day_s}.txt"
4952
end
5053

54+
desc "Run #{day_s} racket"
55+
task "run:#{day_s}:rkt" do
56+
sh "time racket #{day_s}.rkt"
57+
end
5158

5259
desc "Run #{day_s} ruby"
5360
task "test:#{day_s}:rb" do

0 commit comments

Comments
 (0)