~ubuntu-branches/debian/sid/ruby-cri/sid

« back to all changes in this revision

Viewing changes to Rakefile

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2014-04-14 15:15:48 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140414151548-xni482c106hiik3q
Tags: 2.6.0-1
* Imported Upstream version 2.6.0
* Add asciidoctor to Build-Depends, now that the README file has a .adoc
  extension
* Add privacy-breach.patch to remove remote badges from the README file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# encoing: utf-8
2
2
 
3
 
##### Requirements
4
 
 
5
 
# Rake etc
6
 
require 'rake'
7
 
require 'minitest'
8
 
require 'minitest/unit'
9
 
 
10
 
# Cri itself
11
 
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/lib'))
12
 
require 'cri'
13
 
 
14
 
##### Documentation
15
 
 
 
3
require 'rake/testtask'
16
4
require 'yard'
17
5
 
18
6
YARD::Rake::YardocTask.new(:doc) do |yard|
19
7
  yard.files   = Dir['lib/**/*.rb']
20
8
  yard.options = [
21
9
    '--markup',        'markdown',
22
 
    '--readme',        'README.md',
 
10
    '--readme',        'README.adoc',
23
11
    '--files',         'NEWS.md,LICENSE',
24
12
    '--output-dir',    'doc/yardoc',
25
13
  ]
26
14
end
27
15
 
28
 
##### Testing
29
 
 
30
 
desc 'Runs all tests'
31
16
task :test do
32
 
  ENV['QUIET'] ||= 'true'
33
 
 
34
 
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
35
 
 
36
 
  MiniTest.autorun
37
 
 
38
 
  require 'test/helper.rb'
39
 
 
40
 
  test_files = Dir['test/test_*.rb']
41
 
  test_files.each { |f| require f }
 
17
  require './test/helper.rb'
 
18
 
 
19
  FileList['./test/**/test_*.rb', './test/**/*_spec.rb'].each do |fn|
 
20
    require fn
 
21
  end
42
22
end
43
23
 
44
24
task :default => :test