Sha256: ec15d6a4b98bd85c8286f28690af7c7e80f532e54a57d1c3b3200aa59e9f2e01

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

#!/usr/bin/env rake
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

begin
  Bundler.setup :default, :development
  Bundler::GemHelper.install_tasks
rescue Bundler::BundlerError => error
  $stderr.puts error.message
  $stderr.puts 'Run `bundle install` to install missing gems'
  exit error.status_code
end

desc 'Run RSpec with code coverage'
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec'].execute
end

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new(:rubocop)

desc 'Default: run tests'
task default: [:spec]

desc 'C.I: run tests and rubocop'
task :ci do
  Rake::Task['rubocop'].execute
  Rake::Task['spec'].execute
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picture_from-1.0.1 Rakefile
picture_from-1.0.0 Rakefile