Sha256: 12d54c7f165d2f7d07960880a85689cfb49ff061a00cadd0ee86acfbca875192

Contents?: true

Size: 806 Bytes

Versions: 21

Compression:

Stored size: 806 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'appstats/tasks'
require 'metric_fu'
require 'rspec/core/rake_task'
require 'tasks/standalone_migrations'

import 'lib/appstats/ci.rake'

begin
  MigratorTasks.new do |t|
    t.migrations = "db/migrations"
    t.config = "db/config.yml"
    t.schema = "db/schema.rb"
    t.env = "DB"
    t.default_env = "development"
    t.verbose = true
    t.log_level = Logger::ERROR
  end
rescue LoadError => e
  puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})"
end

RSpec::Core::RakeTask.new(:spec) do |t|
	t.pattern = "spec/*_spec.rb"
	t.rspec_opts = "--color"
end

MetricFu::Configuration.run do |config|
  config.metrics = [:rcov]
  config.rcov[:test_files] = ['spec/*_spec.rb']
  config.rcov[:rcov_opts] << '-Ispec'
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
appstats-0.20.10 Rakefile
appstats-0.20.9 Rakefile
appstats-0.20.8 Rakefile
appstats-0.20.7 Rakefile
appstats-0.20.6 Rakefile
appstats-0.20.2 Rakefile
appstats-0.20.1 Rakefile
appstats-0.20.0 Rakefile
appstats-0.19.7 Rakefile
appstats-0.19.6 Rakefile
appstats-0.19.2 Rakefile
appstats-0.19.1 Rakefile
appstats-0.19.0 Rakefile
appstats-0.18.0 Rakefile
appstats-0.17.5 Rakefile
appstats-0.17.4 Rakefile
appstats-0.17.3 Rakefile
appstats-0.17.2 Rakefile
appstats-0.17.1 Rakefile
appstats-0.17.0 Rakefile