Sha256: 3ad30fc5c1c1a1cbf4ba8788f0ed410cbbe28a1021d10a4581c599e7fcbc23e5

Contents?: true

Size: 787 Bytes

Versions: 10

Compression:

Stored size: 787 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.setup

Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |spec|
  spec.pattern = 'spec/**/*_spec.rb'
  spec.exclude_pattern = 'spec/integration/**/*_spec.rb'
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

require_relative 'spec/support/integration_specs'
task :integration_specs do
  next if ENV['CI']
  status_codes = []
  handler = lambda do |status_code|
    status_codes << status_code unless status_code.zero?
  end

  run_all_integration_specs(handler: handler, logger: ->(msg) { puts msg })

  if status_codes.any?
    $stderr.puts "#{status_codes.size} integration test(s) failed"
    exit status_codes.last
  end
end

task default: [:rubocop, :spec, :integration_specs]

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
tdiary-5.0.8 vendor/bundle/gems/hashie-3.5.7/Rakefile
hashie-3.5.7 Rakefile
hashie-3.5.6 Rakefile
tdiary-5.0.5 vendor/bundle/gems/hashie-3.5.5/Rakefile
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/hashie-3.5.5/Rakefile
tdiary-5.0.4 vendor/bundle/gems/hashie-3.5.5/Rakefile
hashie-3.5.5 Rakefile
hashie-3.5.4 Rakefile
hashie-3.5.3 Rakefile
hashie-3.5.2 Rakefile