Sha256: a2abe4230ddffd8e20aa71fbae5cca36c903a0d7b82b84204700c918775254f1

Contents?: true

Size: 1.83 KB

Versions: 10

Compression:

Stored size: 1.83 KB

Contents

require 'rubygems'
require 'rake'

task :default => ["test:all"]
task "test:all" => ["test:core", "test:extensions"]

require 'rake/testtask'
Rake::TestTask.new("test:core") do |test|
  test.libs    << 'test'
  test.pattern =  'test/core/**/*_test.rb'
  test.warning =  true
  test.verbose =  false
end

Rake::TestTask.new("test:extensions") do |test|
  test.libs    << 'test'
  test.pattern =  'test/extensions/*_test.rb'
  test.warning =  true
  test.verbose =  false
end

#
# Benchmarks

def run_benchmarks(bin)
  Dir["test/benchmark/*.rb"].each do |file|
    puts ">> Running #{file}"
    puts %x[#{bin} #{file}]
  end
end

desc "Run all of them fancy benchmarks, Howard!"
task("test:benchmarks") { run_benchmarks("ruby") }

desc "Run all of them fancy benchmarks in ruby-1.9, Steve!"
task("test:benchmarks:1.9") { run_benchmarks("ruby1.9") }

#
# YARDie

begin
  require 'yard'
  require 'yard/rake/yardoc_task'
  YARD::Rake::YardocTask.new do |t|
    extra_files = %w(MIT-LICENSE)
    t.files = ['lib/**/*.rb']
    t.options = ["--files=#{extra_files.join(',')}"]
  end
rescue LoadError
  # YARD isn't installed
end

#
# Some monks like diamonds. I like gems.

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "riot"
    gem.summary = "An extremely fast, expressive, and context-driven unit-testing framework. Protest the slow test."
    gem.description = "An extremely fast, expressive, and context-driven unit-testing framework. A replacement for all other testing frameworks. Protest the slow test."
    gem.email = "gus@gusg.us"
    gem.homepage = "http://github.com/thumblemonks/riot"
    gem.authors = ["Justin 'Gus' Knowlden"]
    gem.add_dependency 'rr'
    gem.add_dependency 'term-ansicolor'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
riot-0.12.1 Rakefile
riot-0.12.0 Rakefile
riot-0.12.0.pre Rakefile
riot-0.11.4 Rakefile
riot-0.11.4.pre Rakefile
riot-0.11.3 Rakefile
riot-0.11.2 Rakefile
riot-0.11.1 Rakefile
riot-0.11.0 Rakefile
riot-0.10.13 Rakefile