Sha256: 7ccdff5df882bac017b191d40603700b723f669d9e97bcc209e89d6c803a6c4c

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

if ENV['RAILS_BUNDLE_FIRST']
  unless system('bundle check')
    # system('ruby -r rubygems -e "p Gem.path"')
    puts "RAILS_BUNDLE_FIRST is set, running `bundle install`..."
    system("bundle install") || raise("'bundle install' failed.")
  end
end

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"
    # TODO: figure out why this property went away
    # 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

13 entries across 13 versions & 1 rubygems

Version Path
appstats-0.23.5 Rakefile
appstats-0.23.4 Rakefile
appstats-0.23.3 Rakefile
appstats-0.23.2 Rakefile
appstats-0.23.1 Rakefile
appstats-0.23.0 Rakefile
appstats-0.22.6 Rakefile
appstats-0.22.5 Rakefile
appstats-0.22.4 Rakefile
appstats-0.22.3 Rakefile
appstats-0.22.2 Rakefile
appstats-0.22.1 Rakefile
appstats-0.22.0 Rakefile