Sha256: 488b7655e3325c0ea2ededc19b55c3197313eb774d12e8f653396f393792c996

Contents?: true

Size: 1.11 KB

Versions: 56

Compression:

Stored size: 1.11 KB

Contents

#!/usr/bin/env ruby

unless $:.include?(File.dirname(__FILE__) + '/lib/')
  $: << File.dirname(__FILE__) + '/lib'
end

require 'fileutils'
require 'rake'

require 'resque/tasks'

Dir['tasks/**/*.rake'].each { |t| load t }

require 'cucumber'
require 'cucumber/rake/task'
require 'rake/clean'
require 'bundler'
Bundler::GemHelper.install_tasks

Cucumber::Rake::Task.new(:features) do |t|
  #t.cucumber_opts = 'features --format pretty'
  #t.cucumber_opts = '--format progress'
  #t.cucumber_opts = '--format fuubar'
  t.cucumber_opts = '--format Cucumber::Formatter::Fuubar'
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task :default => :tests

namespace :verify do

  task :uncommitted do

    def red(text)
      "\e[0;31;49m#{text}\e[0m"
    end

    uncommitted = `git ls-files -m`.split("\n")
    if uncommitted.size > 0
      puts red('The following files are uncommitted:')
      uncommitted.each do |filename|
        puts red(" - #{filename}")
      end
      exit 1
    end
  end

  task :all => [ :uncommitted ]
end

task :verify => [ 'verify:all', :spec, :features]
task :tests  => [ :spec, :features]

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
flapjack-0.7.13 Rakefile
flapjack-0.7.12 Rakefile
flapjack-0.7.11 Rakefile
flapjack-0.7.10 Rakefile
flapjack-0.7.9 Rakefile
flapjack-0.7.8 Rakefile
flapjack-0.7.7 Rakefile
flapjack-0.7.6 Rakefile
flapjack-0.7.5 Rakefile
flapjack-0.7.4 Rakefile
flapjack-0.7.3 Rakefile
flapjack-0.7.2 Rakefile
flapjack-0.7.1 Rakefile
flapjack-0.7.0 Rakefile
flapjack-0.6.61 Rakefile
flapjack-0.6.60 Rakefile
flapjack-0.6.59 Rakefile
flapjack-0.6.58 Rakefile
flapjack-0.6.57 Rakefile
flapjack-0.6.56 Rakefile