ruby-lxc/Rakefile

27 lines
522 B
Ruby
Raw Normal View History

2013-12-06 17:43:19 +01:00
require 'rake/extensiontask'
require 'rake/testtask'
2013-12-27 18:44:24 +01:00
require 'rdoc/task'
2013-12-06 17:43:19 +01:00
require 'rubygems/package_task'
spec = Gem::Specification.load('ruby-lxc.gemspec')
Gem::PackageTask.new(spec) do |pkg|
end
Rake::ExtensionTask.new('lxc', spec) do |ext|
ext.lib_dir = 'lib/lxc'
end
2013-12-27 18:44:24 +01:00
Rake::RDocTask.new do |rd|
rd.main = 'ext/lxc/lxc.c'
rd.rdoc_dir = 'doc'
rd.rdoc_files.include(FileList['ext/lxc/lxc.c'])
end
2013-12-06 17:43:19 +01:00
Rake::TestTask.new do |t|
t.libs << 'test'
2013-12-06 18:00:10 +01:00
t.test_files = FileList['test/test_*.rb']
2013-12-06 17:43:19 +01:00
t.verbose = true
end