Sha256: 4cc608fba446aa636ac59e656f89c0cb0acb2a5064758a9c642bcbaa07d966a2

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require "bundler/gem_tasks"

begin
  require "rspec/core/rake_task"
  require "rubocop/rake_task"
  RSpec::Core::RakeTask.new(:spec)
  RuboCop::RakeTask.new
rescue LoadError => exception
  puts "Library not available: #{exception.message}"
end

desc "Build, lint, and test"
task :build_and_test do
  Rake::Task["lint"].invoke
  Rake::Task["test"].invoke
  Rake::Task["build"].invoke unless ENV["CI"]
end

desc "Lint"
task lint: :rubocop

desc "Test"
task test: :spec

task default: :build_and_test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-permutations-1.0.0 Rakefile