-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Rakefile
35 lines (28 loc) · 805 Bytes
/
Rakefile
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
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true
# -*- ruby -*-
require 'rubygems'
require 'rubygems/package_task'
require 'rake/testtask'
require 'rdoc/task'
require 'bundler/gem_tasks'
$LOAD_PATH.push File.expand_path(File.dirname(__FILE__), 'lib')
version = Geos::VERSION
desc 'Test GEOS interface'
Rake::TestTask.new(:test) do |t|
t.libs << "#{File.dirname(__FILE__)}/test"
t.test_files = FileList['test/**/*_tests.rb']
t.verbose = !!ENV['VERBOSE_TESTS']
t.warning = !!ENV['WARNINGS']
end
task default: :test
begin
desc 'Build docs'
Rake::RDocTask.new do |t|
t.title = "ffi-geos #{version}"
t.main = 'README.rdoc'
t.rdoc_dir = 'doc'
t.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'lib/**/*.rb')
end
rescue LoadError
puts 'Rake::RDocTask is not supported on this platform.'
end