forked from galetahub/ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
71 lines (60 loc) · 1.44 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# frozen_string_literal: true
require 'rubygems'
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'rake'
require 'rdoc/task'
require 'rake/testtask'
task default: :test
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
t.warning = false
end
Rake::TestTask.new('test:controllers') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/controllers/*_test.rb'
t.verbose = false
t.warning = false
end
Rake::TestTask.new('test:generators') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/generators/*_test.rb'
t.verbose = false
t.warning = false
end
Rake::TestTask.new('test:integration') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/integration/*_test.rb'
t.verbose = false
t.warning = false
end
Rake::TestTask.new('test:models') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/models/*_test.rb'
t.verbose = false
t.warning = false
end
Rake::TestTask.new('test:functional') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/functional/*_test.rb'
t.verbose = false
t.warning = false
end
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Ckeditor'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end