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.35 Rakefile
flapjack-0.7.34 Rakefile
flapjack-0.7.33 Rakefile
flapjack-0.7.32 Rakefile
flapjack-0.7.31 Rakefile
flapjack-0.7.30 Rakefile
flapjack-0.7.29 Rakefile
flapjack-0.7.28 Rakefile
flapjack-0.7.27 Rakefile
flapjack-0.7.26 Rakefile
flapjack-0.7.25 Rakefile
flapjack-0.7.22 Rakefile
flapjack-0.7.21 Rakefile
flapjack-0.7.20 Rakefile
flapjack-0.7.19 Rakefile
flapjack-0.7.18 Rakefile
flapjack-0.7.17 Rakefile
flapjack-0.7.16 Rakefile
flapjack-0.7.15 Rakefile
flapjack-0.7.14 Rakefile