tracks/lib/tasks/continuous_integration.rake
Dan Rice d7d86446c0 Upgrade to Rails 4.2
* Update boilerplate with `bin/rake rails:upgrade`
* Use test instead of test:all rake task
* Change stylesheet extensions from .css.scss to .scss
* Update docs to use localhost instead of 0.0.0.0 because Rails 4.2
  no longer listens on all addresses by default.
2016-05-22 21:58:52 -04:00

32 lines
694 B
Ruby

namespace :ci do
desc 'Continuous integration tests, without features'
task :lite do
ENV['RAILS_ENV'] ||= "test"
puts 'Running "lite" test suite'
[:environment, 'db:create', :test].each do |t|
Rake::Task[t].invoke
end
end
desc 'Continuous integration tests, including features'
task :full do |t|
puts 'Running full test suite'
# test coverage from codeclimate
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
# local test coverage
require 'simplecov'
SimpleCov.start 'rails'
['ci:lite', 'cucumber'].each do |t|
Rake::Task[t].invoke
end
end
end
desc 'Alias for ci:full'
task :ci => 'ci:full'