Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.602 kb
2f4bbd4 @d [Stager] Rakefile clean up
d authored
1 require 'rubygems/package_task'
2 require 'rspec/core/rake_task'
3 require 'ci/reporter/rake/rspec'
a59fd12 Stager component skeleton
mpage authored
4
2f4bbd4 @d [Stager] Rakefile clean up
d authored
5 gemspec = Gem::Specification.load('vcap_stager.gemspec')
6 gem_package_task = Gem::PackageTask.new(gemspec) {}
7 gem_path = File.join(gem_package_task.package_dir, gemspec.full_name)
a59fd12 Stager component skeleton
mpage authored
8
2f4bbd4 @d [Stager] Rakefile clean up
d authored
9 desc "Install #{gem_path}"
a59fd12 Stager component skeleton
mpage authored
10 task :install => [:package] do
2f4bbd4 @d [Stager] Rakefile clean up
d authored
11 sh "gem install --no-ri --no-rdoc #{gem_path}"
a59fd12 Stager component skeleton
mpage authored
12 end
13
2f4bbd4 @d [Stager] Rakefile clean up
d authored
14 RSpec::Core::RakeTask.new(:spec) do |t|
15 t.pattern = 'spec/**/*_spec.rb'
16 t.rspec_opts = ['--color', '--format nested']
a59fd12 Stager component skeleton
mpage authored
17 end
18
2f4bbd4 @d [Stager] Rakefile clean up
d authored
19 desc "Run specs producing results for CI"
20 task 'ci:spec' => ['ci:setup:rspec', :spec]
Something went wrong with that request. Please try again.