Sha256: a2a62a707a1712bf5ee0a7a8b88ce61ffca9c4a83569a12592f6f35211d8a43b

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

require 'fedux_org/stdlib/command/which'

resolver = Class.new do
  include FeduxOrg::Stdlib::Command::Which
end

namespace :test do
  desc 'Run tests in "travis mode"'
  task :travis_specs do
    ENV['CI'] = 'true'

    sh 'rspec spec' if resolver.new.which( 'rspec' )
    sh 'cucumber -p all' if resolver.new.which( 'cucumber' )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.3.2 lib/fedux_org/stdlib/rake/tests/travis.rb
fedux_org-stdlib-0.3.0 lib/fedux_org/stdlib/rake/tests/travis.rb
fedux_org-stdlib-0.2.1 lib/fedux_org/stdlib/rake/tests/travis.rb