Sha256: 270ef605bfe88b43e01e0dc1812a1b28d8ea2253a6f4e28be56a6ebe175b2eaa

Contents?: true

Size: 728 Bytes

Versions: 9

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

require 'rake/testtask'

task default: :test

desc 'Builds the Gem.'
task build: :format
task build: :self_check
task build: :test do
  sh 'gem build gherkin_lint.gemspec'
end

# desc 'Publishes the Gem'
# task :push do
#   sh 'gem push gherkin_lint-1.2.2.gem'
# end

desc 'Checks ruby style'
task :rubocop do
  sh 'rubocop -a'
rescue RuntimeError => e
  # Rubocop failing due to style violations is fine. Other errors should bubble up to our attention.
  raise e unless e.message =~ /status \(1\).*rubocop/

  puts 'Rubocop failed'
end

task :spec do
  sh 'bundle exec rspec'
end

task :cucumber do
  sh 'cucumber --tags "not @skip" --guess -f progress'
end

task test: %i[rubocop spec cucumber]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
chutney-3.10.0 Rakefile
chutney-3.9.0 Rakefile
chutney-3.8.2 Rakefile
chutney-3.8.1 Rakefile
chutney-3.8.0 Rakefile
chutney-3.7.0 Rakefile
chutney-3.6.0 Rakefile
chutney-3.5.0 Rakefile
chutney-3.3.0 Rakefile