Sha256: 569da4d3bf3d26e09c672279b951b8f6944d8a29cab0e2d0f3038cd8f785e47a
Contents?: true
Size: 910 Bytes
Versions: 26
Compression:
Stored size: 910 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' ruby_memcheck_avaiable = begin require 'ruby_memcheck' true rescue LoadError false end if ruby_memcheck_avaiable RubyMemcheck.config( binary_name: 'duckdb/duckdb_native', valgrind_options: ['--max-threads=1000'] ) end test_config = lambda do |t| t.libs << 'test' t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end Rake::TestTask.new(test: :compile, &test_config) if ruby_memcheck_avaiable namespace :test do RubyMemcheck::TestTask.new(valgrind: :compile, &test_config) end end require 'rake/extensiontask' task build: :compile Rake::ExtensionTask.new('duckdb_native') do |ext| ext.ext_dir = 'ext/duckdb' ext.lib_dir = 'lib/duckdb' end task default: %i[clobber compile test]
Version data entries
26 entries across 26 versions & 1 rubygems