-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (28 loc) · 694 Bytes
/
Rakefile
File metadata and controls
34 lines (28 loc) · 694 Bytes
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
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'codtls/version'
task default: :build
desc 'Run tests'
Rake::TestTask.new do |t|
t.libs << 'test'
end
desc 'Create documentation'
task :doc do
sh 'gem rdoc --rdoc openssl-ccm'
sh 'yardoc'
end
desc 'Uninstall and clean documentation'
task :clean do
sh 'gem uninstall codtls'
begin; sh 'rm -R ./coverage'; rescue; p 'check'; end
begin; sh 'rm -R ./.yardoc'; rescue; p 'check'; end
begin; sh 'rm -R ./doc'; rescue; p 'check'; end
end
desc 'Development Dependencies'
task :devinst do
sh "gem install --dev ./codtls-#{CoDTLS::VERSION}.gem"
end
desc 'Bundle install'
task :bundle do
sh 'bundle install'
end