Skip to content
Newer
Older
100755 49 lines (41 sloc) 1015 Bytes
baaff10 initial commit
XING Engineering authored
1 require 'rake'
2 require 'rake/testtask'
3e9b0f3 @boosty Fixed rdoc rake task deprecation warnings
boosty authored
3 require 'rdoc/task'
baaff10 initial commit
XING Engineering authored
4
975bb9a @musybite Prepared gemspec with bundler (prerelease for now)
musybite authored
5 require 'bundler'
6 Bundler::GemHelper.install_tasks
7
baaff10 initial commit
XING Engineering authored
8 desc 'Default: run unit tests.'
e10af12 @pboling Ruby 1.9-style hashes
authored
9 task default: :test
baaff10 initial commit
XING Engineering authored
10
11 desc 'Test the flag_shih_tzu plugin.'
12 Rake::TestTask.new(:test) do |t|
13 t.libs << 'lib'
14 t.pattern = 'test/**/*_test.rb'
15 t.verbose = true
16 end
17
18 desc 'Generate documentation for the flag_shih_tzu plugin.'
3e9b0f3 @boosty Fixed rdoc rake task deprecation warnings
boosty authored
19 RDoc::Task.new(:rdoc) do |rdoc|
baaff10 initial commit
XING Engineering authored
20 rdoc.rdoc_dir = 'rdoc'
21 rdoc.title = 'FlagShihTzu'
3e9b0f3 @boosty Fixed rdoc rake task deprecation warnings
boosty authored
22 rdoc.options << '--line-numbers'
7fc4f09 @boosty Updated README, converted to rdoc format so it can be built by the ra…
boosty authored
23 rdoc.rdoc_files.include('README.rdoc')
baaff10 initial commit
XING Engineering authored
24 rdoc.rdoc_files.include('lib/**/*.rb')
25 end
ccbd928 Add RCov for helping us to see coverage.
ladislav.martincik authored
26
fc70024 @pboling Fixes for all supported envs
authored
27 if defined?(Reek) # No Reek on JRuby
28 require 'reek/rake/task'
29 Reek::Rake::Task.new do |t|
30 t.fail_on_error = true
31 t.verbose = false
32 t.source_files = 'lib/**/*.rb'
33 end
ae42b84 @pboling Proper coveralls configuration. Removed runtime dependency on activer…
authored
34 end
35
fc70024 @pboling Fixes for all supported envs
authored
36 if defined?(Roodi) # No Roodi on JRuby
37 require 'roodi_task'
38 RoodiTask.new do |t|
39 t.verbose = false
40 end
ae42b84 @pboling Proper coveralls configuration. Removed runtime dependency on activer…
authored
41 end
42
ccbd928 Add RCov for helping us to see coverage.
ladislav.martincik authored
43 namespace :test do
9a7842d @boosty Updated tests and docs for upcoming gem release
boosty authored
44 desc 'Test against all supported ActiveRecord versions'
45 task :all do
c889f93 @pboling bash script for running complete test suite on Ruby 1.9.3 and Ruby 2.1.2
authored
46 sh "bin/test.bash"
9a7842d @boosty Updated tests and docs for upcoming gem release
boosty authored
47 end
975bb9a @musybite Prepared gemspec with bundler (prerelease for now)
musybite authored
48 end
Something went wrong with that request. Please try again.