Sha256: 1624446ae4785ccc5f896183de10e9ff46156c316dc12cd98adaf992d5b1cf1c

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

require 'rake'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end

task :test_each_db_adapter do
  %w{ mysql sqlite postgresql }.each do |database|
    puts
    puts "#{'*'*10} Running tests with #{database}"
    puts
    puts `rake test DATABASE=#{database}`
  end
end

task :default => :test_each_db_adapter
task :spec => :test_each_db_adapter

require 'yard'
YARD::Rake::YardocTask.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cohort_analysis-1.0.3 Rakefile
cohort_analysis-1.0.2 Rakefile
cohort_analysis-1.0.1 Rakefile