Sha256: d3db86fdccff016ce2e2ca5c352cb30b1bbd526c1ed693201d814ea156106791

Contents?: true

Size: 1.34 KB

Versions: 37

Compression:

Stored size: 1.34 KB

Contents

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

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

require "bundler/gem_tasks"

require "rake/dsl_definition"
require "rake"
require "rspec/core/rake_task"


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

    namespace :integration do
      namespace :aws do
        jobs = Dir["spec/integration/aws/*_spec.rb"].map {|f| File.basename(f).gsub(/aws_(.*)_spec.rb/, '\1')}
        jobs.each do |job|
          desc "Run AWS '#{job}' Integration Test"
          RSpec::Core::RakeTask.new(job.to_sym) do |t|
            t.pattern = "spec/integration/aws/aws_#{job}_spec.rb"
            t.rspec_opts = %w(--format progress --color)
          end
        end
      end

      desc "Run AWS Integration Tests"
      RSpec::Core::RakeTask.new(:aws) do |t|
        t.pattern = "spec/integration/aws/*_spec.rb"
        t.rspec_opts = %w(--format progress --color)
      end
    end

    desc "Run all Integration Tests"
    task :integration => %w[spec:integration:aws]
  end

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

task :default => :spec

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 Rakefile
bosh-bootstrap-0.18.0 Rakefile
bosh-bootstrap-0.17.1 Rakefile
bosh-bootstrap-0.17.0 Rakefile
bosh-bootstrap-0.16.2 Rakefile
bosh-bootstrap-0.16.1 Rakefile
bosh-bootstrap-0.16.0 Rakefile
bosh-bootstrap-0.15.0 Rakefile
bosh-bootstrap-0.14.5 Rakefile
bosh-bootstrap-0.14.4 Rakefile
bosh-bootstrap-0.14.3 Rakefile
bosh-bootstrap-0.14.2 Rakefile
bosh-bootstrap-0.14.1 Rakefile
bosh-bootstrap-0.14.0 Rakefile
bosh-bootstrap-0.13.2 Rakefile
bosh-bootstrap-0.13.1 Rakefile
bosh-bootstrap-0.13.0 Rakefile
bosh-bootstrap-0.12.0 Rakefile
bosh-bootstrap-0.11.15 Rakefile
bosh-bootstrap-0.11.14 Rakefile