Sha256: 8889d264f1cafc8b6bb9e560df5a4a6e15b3c11312f11be39d1f924a8fb28971

Contents?: true

Size: 353 Bytes

Versions: 15

Compression:

Stored size: 353 Bytes

Contents

desc 'with-rake', 'Run tests with `rake`', :hide => true
def with_rake
  if Util.file_containing?('Rakefile', /^task.+default.+(spec|test|feature)/)
    invoke_cmd 'bundle_install'
    invoke_cmd 'yarn_install'

    announce 'Running tests with `rake`'
    Util.system! 'rake'
  else
    note '`rake` does not run tests.'
    :did_not_perform
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/with_rake.rb
geordi-2.12.2 lib/geordi/commands/with_rake.rb
geordi-2.12.1 lib/geordi/commands/with_rake.rb
geordi-2.12.0 lib/geordi/commands/with_rake.rb
geordi-2.11.0 lib/geordi/commands/with_rake.rb
geordi-2.10.1 lib/geordi/commands/with_rake.rb
geordi-2.10.0 lib/geordi/commands/with_rake.rb
geordi-2.9.0 lib/geordi/commands/with_rake.rb
geordi-2.8.0 lib/geordi/commands/with_rake.rb
geordi-2.7.0 lib/geordi/commands/with_rake.rb
geordi-2.6.0 lib/geordi/commands/with_rake.rb
geordi-2.5.0 lib/geordi/commands/with_rake.rb
geordi-2.4.0 lib/geordi/commands/with_rake.rb
geordi-2.3.0 lib/geordi/commands/with_rake.rb
geordi-2.2.0 lib/geordi/commands/with_rake.rb