File: Rakefile

package info (click to toggle)
diakonos 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,052 kB
  • sloc: ruby: 9,342; sh: 11; ansic: 11; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (2)
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
require 'rake'
require 'rake/testtask'

task :default => [ :test ]
task :spec => [ :test ]

desc "Run Diakonos tests"
task :test do
  system 'bacon -Ilib spec/*.rb spec/*/*.rb'
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new( :docs ) do |t|
  end
rescue LoadError
  desc "Generate source code documentation with YARD"
  task :docs do
    $stderr.puts "('gem install yard' in order to be able to generate Diakonos source code documentation.)"
  end
end

desc "Clean directory of gems and tarballs"
task :clean do
  system 'rm diakonos-*.*.*.tar.*'
  system 'rm diakonos-*.*.*.gem'
end