From 870bf2a2f49aaba34a232459f61d0a7e6dfd8847 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Fri, 5 Jun 2020 15:49:21 -0400 Subject: [PATCH] Run standard on CI To ensure we run standard before merging any PR, this commit adds standard to Travis CI --- .travis.yml | 1 + Rakefile | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6a94a82..7b574f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ branches: - master install: - "bundle install --retry 3 --jobs 8" +script: "bundle exec rake" gemfile: - gemfiles/rails5.0.gemfile - gemfiles/rails5.1.gemfile diff --git a/Rakefile b/Rakefile index 6623284..b2ef378 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ require "bundler/setup" require "cucumber/rake/task" require "rspec/core/rake_task" +require "standard/rake" Bundler::GemHelper.install_tasks name: "factory_bot_rails" @@ -11,5 +12,5 @@ end RSpec::Core::RakeTask.new(:spec) -desc "Run the test suite" -task default: %w[spec cucumber] +desc "Run the test suite and standard" +task default: %w[spec cucumber standard]