File: Rakefile

package info (click to toggle)
ruby-version-sorter 2.2.4-1~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 164 kB
  • sloc: ansic: 247; ruby: 112; sh: 52; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'rake/testtask'
require 'rake/extensiontask'

task :default => :test

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.test_files = FileList['test/*test.rb']
end

Rake::ExtensionTask.new('version_sorter')

desc "Compile the native extension"
task :test => :compile

desc "Run the benchmark"
task :benchmark => :compile do
  sh 'script/benchmark'
end