forked from shawnjgoff/aead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
46 lines (37 loc) · 1009 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'rake/testtask'
require 'rake/version_task'
require 'yard'
task :default => %w{ build test }
task :build do
Dir.chdir('ext/openssl/cipher/aead') do
system %{ruby extconf.rb}
system %{make}
system %{cp aead.#{RbConfig::CONFIG['DLEXT']} ../../../../lib/openssl/cipher}
end
end
Rake::TestTask.new do |t|
t.libs.push 'lib'
t.libs.push 'spec'
t.test_files = FileList['spec/**/*_spec.rb']
t.verbose = true
end
if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'ruby'
require 'cane/rake_task'
task :default => :cane
Cane::RakeTask.new do |t|
t.add_threshold 'coverage/coverage.txt', :>=, 100
end
end
Rake::VersionTask.new do |t|
t.with_git_tag = true
end
YARD::Rake::YardocTask.new(:doc) do |t|
# --no-stats applies only to the `yard stats` command, so to include
# it we have to disable automatic stat generation and do it
# ourselves
t.options << '--no-stats'
t.after = lambda do
stats = YARD::CLI::Stats.new
stats.run '--list-undoc'
end
end