Casecommons/pg_search

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require "bundler"
Bundler::GemHelper.install_tasks

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)

require "standard/rake"

desc "Check test coverage"
task :undercover do
  system("git fetch --unshallow") if ENV["CI"]
  exit(1) unless system("bin/undercover --compare origin/master")
end

task default: %w[spec standard undercover]