Skip to content

Commit

Permalink
Setup build for travis-ci.org.
Browse files Browse the repository at this point in the history
- Lock patron to 0.4.9.  On travis-ci.org, my build failed because the newest patron uses a version of libcurl to new for the debian installation it uses.
- Setup ci:build.
  • Loading branch information
myronmarston committed Feb 19, 2011
1 parent 17926de commit 2e37007
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -0,0 +1 @@
script: "rake ci:build"
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -4,7 +4,7 @@ gemspec
group :development do group :development do
# patron and em-http-request can't install on JRuby, so we have to limit their platform here. # patron and em-http-request can't install on JRuby, so we have to limit their platform here.
platforms :ruby do platforms :ruby do
gem 'patron', '~> 0.4.6' gem 'patron', '0.4.9'
gem 'em-http-request', '~> 0.2.7' gem 'em-http-request', '~> 0.2.7'
gem 'curb', '~> 0.7.8' gem 'curb', '~> 0.7.8'
gem 'typhoeus', '~> 0.2.1' gem 'typhoeus', '~> 0.2.1'
Expand Down
16 changes: 16 additions & 0 deletions Rakefile
Expand Up @@ -25,6 +25,22 @@ Cucumber::Rake::Task.new


task :default => [:spec, :cucumber] task :default => [:spec, :cucumber]


namespace :ci do
desc "Sets things up for a ci build on travis-ci.org"
task :setup do
sh "git submodule init"
sh "git submodule update"
end

RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = true
t.rspec_opts = %w[--format progress --backtrace]
end

desc "Run a ci build"
task :build => [:setup, :spec, :cucumber]
end

desc "Push cukes to relishapp using the relish-client-gem" desc "Push cukes to relishapp using the relish-client-gem"
task :relish do task :relish do
require 'vcr/version' require 'vcr/version'
Expand Down
2 changes: 1 addition & 1 deletion vcr.gemspec
Expand Up @@ -40,7 +40,7 @@ Gem::Specification.new do |s|
end end


{ {
'patron' => '~> 0.4.6', 'patron' => '0.4.9',
'em-http-request' => '~> 0.2.7', 'em-http-request' => '~> 0.2.7',
'curb' => '~> 0.7.8', 'curb' => '~> 0.7.8',
'typhoeus' => '~> 0.2.1' 'typhoeus' => '~> 0.2.1'
Expand Down

0 comments on commit 2e37007

Please sign in to comment.