Sha256: 84fcd7cb922eb222561e9519a2682f4c3481f25d5b3d2e2bfb7dd85c3408b0c2

Contents?: true

Size: 1.01 KB

Versions: 27

Compression:

Stored size: 1.01 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'
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

27 entries across 27 versions & 1 rubygems

Version Path
flapjack-0.9.6 Rakefile
flapjack-0.9.5 Rakefile
flapjack-0.9.4 Rakefile
flapjack-1.1.0 Rakefile
flapjack-1.0.0 Rakefile
flapjack-1.0.0rc6 Rakefile
flapjack-1.0.0rc5 Rakefile
flapjack-0.9.3 Rakefile
flapjack-1.0.0rc3 Rakefile
flapjack-1.0.0rc2 Rakefile
flapjack-0.9.2 Rakefile
flapjack-0.9.1 Rakefile
flapjack-1.0.0rc1 Rakefile
flapjack-0.9.0 Rakefile
flapjack-0.8.12 Rakefile
flapjack-0.8.11 Rakefile
flapjack-0.8.10 Rakefile
flapjack-0.8.9 Rakefile
flapjack-0.8.8 Rakefile
flapjack-0.8.7 Rakefile