1 Star 0 Fork 0

leopku/posix-spawn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Rakefile 1.08 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leopku/posix-spawn.git
git@gitee.com:leopku/posix-spawn.git
leopku
posix-spawn
posix-spawn
master

搜索帮助