Sha256: 74b4d11daaf63b42f568b1588e3b7234204c8a4ef10f30a0513794f5503a1de9

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

# Copyright (c) 2009-2012 VMware, Inc.

$:.unshift(File.expand_path("../../rake", __FILE__))

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __FILE__)

require "rubygems"
require "bundler"
Bundler.setup(:default, :test)

require "rake"
begin
  require "rspec/core/rake_task"
rescue LoadError
end

require "bundler_task"
require "ci_task"

gem_helper = Bundler::GemHelper.new(Dir.pwd)

desc "Build Blobstore Client gem into the pkg directory"
task "build" do
  gem_helper.build_gem
end

desc "Build and install Blobstore Client into system gems"
task "install" do
  gem_helper.install_gem
end

BundlerTask.new

if defined?(RSpec)
  namespace :spec do
    desc "Run Unit Tests"
    rspec_task = RSpec::Core::RakeTask.new(:unit) do |t|
      t.pattern = "spec/unit/**/*_spec.rb"
      t.rspec_opts = %w(--format progress --colour)
    end

    CiTask.new do |task|
      task.rspec_task = rspec_task
    end
  end

  desc "Install dependencies and run tests"
  task :spec => %w(spec:unit)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blobstore_client-0.5.0 Rakefile
blobstore_client-0.4.0 Rakefile