blob: c94b177edc3a0dc91d2f6034054ac01eb3b5e228 [file] [edit]
# frozen_string_literal: true
require "fileutils"
task :compile do
system "cd ext && bundle exec rake"
end
task test: :compile do
unless system "bundle exec rspec"
exit $?.exitstatus
end
end
task :clean do
[
"./lib/llhttp/llhttp_ext.bundle"
].each do |file|
next unless File.exist?(file)
FileUtils.rm(file)
end
end
task build: %i[test clean] do
system "gem build llhttp-ffi.gemspec"
end