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

Version Path
duckdb-1.1.3.1 Rakefile
duckdb-1.1.3.0 Rakefile
duckdb-1.1.2.1 Rakefile
duckdb-1.1.2.0 Rakefile
duckdb-1.1.1.0 Rakefile
duckdb-1.1.0.1 Rakefile
duckdb-1.1.0.0 Rakefile
duckdb-1.0.0.2 Rakefile
duckdb-1.0.0.1 Rakefile
duckdb-1.0.0.0 Rakefile
duckdb-0.10.2.0 Rakefile
duckdb-0.10.1.1 Rakefile
duckdb-0.10.1.0 Rakefile
duckdb-0.10.0.0 Rakefile
duckdb-0.9.2.3 Rakefile
duckdb-0.9.2.2 Rakefile
duckdb-0.9.2.1 Rakefile
duckdb-0.9.2 Rakefile
duckdb-0.9.1.2 Rakefile
duckdb-0.9.1.1 Rakefile