mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
870bf2a2f4
To ensure we run standard before merging any PR, this commit adds standard to Travis CI
16 lines
420 B
Ruby
16 lines
420 B
Ruby
require "bundler/setup"
|
|
require "cucumber/rake/task"
|
|
require "rspec/core/rake_task"
|
|
require "standard/rake"
|
|
|
|
Bundler::GemHelper.install_tasks name: "factory_bot_rails"
|
|
|
|
Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
t.fork = true
|
|
t.cucumber_opts = ["--format", (ENV["CUCUMBER_FORMAT"] || "progress")]
|
|
end
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
desc "Run the test suite and standard"
|
|
task default: %w[spec cucumber standard]
|