Sha256: b9166cc46aef5d48ab12b82f2455a6c58a0711c0c86a8dd72963e898a578cdf9

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

require 'rubygems'
require 'rake'

# Set up a test Pivotal project for the Cucumber tests to use
ENV['PIVOTAL_API_KEY'] = "81f09c932c8bfd2b028ec5e52ec7cf47" # your API key
ENV['PIVOTAL_TEST_PROJECT'] = "681077" # your test project ID (123456)
ENV['PIVOTAL_USER'] = "John Wood" # Your user name (Joe Smith)

$LOAD_PATH.unshift('lib')

task :default => [:spec, :features]

task :spec do
  begin
    require 'rspec/core/rake_task'
    RSpec::Core::RakeTask.new do |t|
      t.rspec_opts = ['--color']
    end
  rescue LoadError => e
    puts "RSpec not installed"
  end
end

task :features do
  begin
    require 'cucumber/rake/task'

    if [ENV['PIVOTAL_API_KEY'], ENV['PIVOTAL_TEST_PROJECT'], ENV['PIVOTAL_USER']].any? { |x| x.nil? || x.empty? }
      raise "ERROR: API key, test project, and user must be set in the Rakefile for the Cucumber tests to run"
    end

    Cucumber::Rake::Task.new(:features) do |t|
      t.cucumber_opts = "features --format pretty"
    end
  rescue LoadError => e
    puts "Cucumber not installed"
  end
end

task :install do
  puts "Uninstalling..."
  system "gem uninstall -x git-pivotal-tracker-centro"

  puts "Building..."
  system "gem build git-pivotal-tracker-centro.gemspec"

  puts "Installing..."
  system "gem install git-pivotal-tracker-centro-#{IO.read("VERSION")}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-pivotal-tracker-centro-1.0.0.rc3 Rakefile
git-pivotal-tracker-centro-1.0.0.rc2 Rakefile