2013-12-06 17:43:19 +01:00
|
|
|
require 'rake/extensiontask'
|
|
|
|
require 'rake/testtask'
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|