Sha256: 58487452b78ac3464f320b698c90a909c7d44ccb9464e18f88751a1c0b09bbe3

Contents?: true

Size: 1.3 KB

Versions: 21

Compression:

Stored size: 1.3 KB

Contents

# Cloud Foundry 2012.02.03 Beta
# Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
#
# This product is licensed to you under the Apache License, Version 2.0 (the "License").
# You may not use this product except in compliance with the License.
#
# This product includes a number of subcomponents with
# separate copyright notices and license terms. Your use of these
# subcomponents is subject to the terms and conditions of the
# subcomponent's license, as noted in the LICENSE file.
#

require "rspec/core/rake_task"
require "bundler/gem_tasks" # only available in bundler >= 1.0.15
require "ci/reporter/rake/rspec"

ENV['CI_REPORTS'] = File.expand_path("spec_reports")
COV_REPORTS = File.expand_path("coverage")

task :default => [:test]
task :tests => [:test]
task :spec => [:test]

RSpec::Core::RakeTask.new("test") do |t|
  t.rspec_opts = ["--format", "documentation", "--colour"]
  t.pattern = "spec/**/*_spec.rb"
end

task :ci => [:pre_coverage, :rcov_reports, "ci:setup:rspec", :test]
task :cov => [:pre_coverage, :test, :view_coverage]
task :coverage => [:pre_coverage, :test]

task :pre_coverage do
  rm_rf COV_REPORTS
  ENV['COVERAGE'] = "exclude-spec exclude-vendor"
end

task :rcov_reports do
  ENV['COVERAGE'] += " rcov"
end

task :view_coverage do
  `firefox #{File.join(COV_REPORTS, 'index.html')}`
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
cf-uaac-3.0.0 Rakefile
cf-uaa-lib-3.0.0 Rakefile
cf-uaac-2.0.3 Rakefile
cf-uaac-2.0.1 Rakefile
cf-uaa-lib-2.1.0 Rakefile
cf-uaa-lib-2.0.1 Rakefile
cf-uaac-2.0.0 Rakefile
cf-uaa-lib-2.0.0 Rakefile
cf-uaa-lib-1.3.10 Rakefile
cf-uaa-lib-1.3.9 Rakefile
cf-uaa-lib-1.3.8 Rakefile
cf-uaac-1.3.9 Rakefile
cf-uaa-lib-1.3.7 Rakefile
cf-uaac-1.3.8 Rakefile
cf-uaac-1.3.6 Rakefile
cf-uaa-lib-1.3.6 Rakefile
cf-uaa-lib-1.3.5 Rakefile
cf-uaac-1.3.4 Rakefile
cf-uaa-lib-1.3.4 Rakefile
cf-uaac-1.3.3 Rakefile