File: Rakefile

package info (click to toggle)
ruby-gsl 2.1.0.3%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,604 kB
  • sloc: ansic: 62,050; ruby: 15,845; sh: 19; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require File.expand_path(%q{../lib/gsl/version}, __FILE__)

require 'bundler/setup'
require 'rubygems/package_task'
require 'rake/extensiontask'
require 'rake/testtask'

Bundler::GemHelper.install_tasks

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.libs << 'test/gsl'
  file_list = [ 'test/*.rb', 'test/gsl/*.rb']  
  if ENV['NMATRIX']
    t.libs    << 'test/gsl/nmatrix_tests' 
    file_list << 'test/gsl/nmatrix_tests/*_test.rb'
  end
 
  t.test_files = FileList[*file_list]
end

spec = eval(IO.read('gsl.gemspec'))
Gem::PackageTask.new(spec).define
Rake::ExtensionTask.new(:gsl_native, spec)

task :default => [:compile, :test]