Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (35 sloc) 1.107 kB
task :default => :test
# ==========================================================
# Packaging
# ==========================================================
GEMSPEC = eval(File.read('posix-spawn.gemspec'))
require 'rubygems/package_task'
Gem::PackageTask.new(GEMSPEC) do |pkg|
end
# ==========================================================
# Ruby Extension
# ==========================================================
begin
require 'rake/extensiontask'
rescue LoadError => boom
warn "ERROR: The rake-compiler gem dependency is missing."
warn "Please run `bundle install' and try again."
raise
end
Rake::ExtensionTask.new('posix_spawn_ext', GEMSPEC) do |ext|
ext.ext_dir = 'ext'
end
task :build => :compile
# ==========================================================
# Testing
# ==========================================================
require 'rake/testtask'
Rake::TestTask.new 'test' do |t|
t.libs << "test"
t.test_files = FileList['test/test_*.rb']
end
task :test => :build
desc 'Run some benchmarks'
task :benchmark => :build do
ruby '-Ilib', 'bin/posix-spawn-benchmark'
end
Jump to Line
Something went wrong with that request. Please try again.