File: Rakefile

package info (click to toggle)
ruby-gpgme 2.0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,920 kB
  • sloc: ruby: 3,129; ansic: 2,559; sh: 7; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (4)
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
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
require 'yard'


desc "Re-compile the extensions"
task :compile do
  FileUtils.rm_rf('tmp') if File.directory?('tmp')
  mkdir 'tmp'

  Dir.chdir('tmp') do
    system "ruby #{File.dirname(__FILE__)}/ext/gpgme/extconf.rb"
    system "make"
  end
end

task :default => [:test]

Rake::TestTask.new(:test => :compile) do |t|
  t.libs << 'test'
  t.pattern = "test/**/*_test.rb"
  t.verbose = true
end
Rake::Task['test'].comment = "Run all tests"

YARD::Rake::YardocTask.new