diaspora/lib/tasks/tests.rake
Dennis Schubert 5b1be7d8da
Remove the schema.rb from this repo
Although this is contrary to rails best-practises, we cannot provide a schema.rb that works for both MySQL and PostgreSQL, so we have no choice. Our migrations are maintained, so it should always be possible to get back to a "clean" database schema anyway.
2017-08-12 15:39:26 +02:00

21 lines
581 B
Ruby

namespace :ci do
namespace :travis do
task prepare_db: %w[db:create db:migrate]
task prepare: %w[prepare_db assets:generate_error_pages]
desc "Run everyhting except cucumber"
task other: %w[prepare tests:generate_fixtures spec jasmine:ci]
desc "Run cucumber"
task cucumber: %w[prepare rake:cucumber]
end
end
if defined?(RSpec)
namespace :tests do
desc "Run all specs that generate fixtures for rspec or jasmine"
RSpec::Core::RakeTask.new(:generate_fixtures => 'spec:prepare') do |t|
t.rspec_opts = ['--tag fixture']
end
end
end