Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (42 sloc) 1.286 kB
e57ae60 @myronmarston Updated Gemfile/gemspec/Rakefile, etc to use latest best practices ba…
authored
1 require 'bundler'
2 require 'bundler/setup'
3 Bundler::GemHelper.install_tasks
4
d2577f7 @myronmarston Initial commit to vcr.
authored
5 require 'rake'
f05cc59 @myronmarston Upgrade to rspec-2.
authored
6 require "rspec/core/rake_task"
d2577f7 @myronmarston Initial commit to vcr.
authored
7
5cdbba3 @myronmarston Improve full build output.
authored
8 RSpec::Core::RakeTask.new(:spec) do |t|
9 t.verbose = false
10 t.rspec_opts = %w[--format progress] if ENV['FULL_BUILD']
11 end
f05cc59 @myronmarston Upgrade to rspec-2.
authored
12
13 desc "Run all examples using rcov"
14 RSpec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
15 t.rcov = true
d912938 @myronmarston Exclude ping.rb and basic_object.rb from rcov code coverage report.
authored
16 t.rcov_opts = %[-Ilib -Ispec --exclude "spec/*,gems/*,ping,basic_object" --text-report --sort coverage --aggregate coverage.data]
f05cc59 @myronmarston Upgrade to rspec-2.
authored
17 end
18
19 task :cleanup_rcov_files do
20 rm_rf 'coverage.data'
d2577f7 @myronmarston Initial commit to vcr.
authored
21 end
22
53d1f7d @myronmarston Remove unnecessary cucumber LoadError rescue.
authored
23 require 'cucumber/rake/task'
7a12870 @myronmarston Remove old cukes. I'm going to rewrite them in a documentation style.
authored
24 Cucumber::Rake::Task.new
25
4531950 @myronmarston Removed old cucumber rake tasks.
authored
26 task :default => [:spec, :cucumber]
d2577f7 @myronmarston Initial commit to vcr.
authored
27
2e37007 @myronmarston Setup build for travis-ci.org.
authored
28 namespace :ci do
29 desc "Sets things up for a ci build on travis-ci.org"
30 task :setup do
31 sh "git submodule init"
32 sh "git submodule update"
33 end
34
35 RSpec::Core::RakeTask.new(:spec) do |t|
36 t.verbose = true
37 t.rspec_opts = %w[--format progress --backtrace]
38 end
39
40 desc "Run a ci build"
41 task :build => [:setup, :spec, :cucumber]
42 end
43
a7e9528 @myronmarston Add relish task that runs as part of release.
authored
44 desc "Push cukes to relishapp using the relish-client-gem"
45 task :relish do
84992d2 @myronmarston Updated relish task to push a version.
authored
46 require 'vcr/version'
450747a @myronmarston Fix relish task
authored
47 sh "relish versions:add myronmarston/vcr:#{VCR.version}"
84992d2 @myronmarston Updated relish task to push a version.
authored
48 sh "relish push vcr:#{VCR.version}"
a7e9528 @myronmarston Add relish task that runs as part of release.
authored
49 end
50
51 task :release => :relish
52
1aa5b6d @myronmarston Add support for gem-testers.org.
authored
53 # For gem-test: http://gem-testers.org/
54 task :test => :spec
Something went wrong with that request. Please try again.