Sha256: a4d02a0485c5a89870ff7986d480403c94da20b32455a8ee0de560b54d010f29

Contents?: true

Size: 1.01 KB

Versions: 14

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 'pact/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

14 entries across 14 versions & 1 rubygems

Version Path
flapjack-1.6.0 Rakefile
flapjack-1.6.0rc4 Rakefile
flapjack-1.6.0rc3 Rakefile
flapjack-1.6.0rc2 Rakefile
flapjack-1.6.0rc1 Rakefile
flapjack-1.5.0 Rakefile
flapjack-1.5.0rc1 Rakefile
flapjack-1.4.0 Rakefile
flapjack-1.4.0rc1 Rakefile
flapjack-1.3.0 Rakefile
flapjack-1.3.0rc3 Rakefile
flapjack-1.3.0rc2 Rakefile
flapjack-1.3.0rc1 Rakefile
flapjack-1.2.2 Rakefile