Sha256: b7ffa8c2d2b861b7b78a070c0f3f840b71554dcfade5e7faaadbf8f1aa1078b3

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rubygems'
require 'rake/testtask'
require 'rdoc/task'

task :default => :test

desc 'Test the typus plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  # t.pattern = 'test/**/*_test.rb'
  t.pattern = 'test/app/controllers/**/*_test.rb'
  t.verbose = true
end

desc 'Generate plugin documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Typus'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "Deploy test/fixtures/rails_app"
task :deploy do
  system "cd test/fixtures/rails_app && cap deploy"
end

RUBIES = %w[1.8.7 ree 1.9.2 jruby].join(",")

namespace :setup do

  desc "Setup test environment"
  task :test_environment do
    system "rvm install #{RUBIES}"
  end

  desc "Setup CI Joe"
  task :cijoe do
    system "git config --replace-all cijoe.runner 'rake test:rubies'"
  end

end

namespace :test do

  task :rubies do
    system "rvm #{RUBIES} rake"
  end

end

require 'yard'

YARD::Rake::YardocTask.new do |t|
  t.files   = []
  t.options = []
end

YARD::Rake::YardocTask.new 'yard:changed' do |t|
  t.files   = `git status | grep '.rb' | grep modified | grep -v yard | cut -d' ' -f4`.split
  t.options = []
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-3.1.0.rc11 Rakefile
typus-3.1.0.rc10 Rakefile
typus-3.1.0.rc9 Rakefile
typus-3.1.0.rc8 Rakefile
typus-3.1.0.rc7 Rakefile