Permalink
Browse files

Travis CI integration

  • Loading branch information...
1 parent 4b54008 commit 4d1a8f3b3c13a9fd9f9d11cdf0e282ea6ad2c235 @aderyabin aderyabin committed Feb 26, 2012
Showing with 29 additions and 2 deletions.
  1. +0 −1 .gitignore
  2. +6 −0 .travis.yml
  3. +10 −0 Gemfile
  4. +12 −1 Rakefile
  5. +1 −0 spec/gchart_spec.rb
View
@@ -4,5 +4,4 @@ log/*
pkg
.rspec
.rvmrc
-Gemfile
Gemfile.lock
View
@@ -0,0 +1,6 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - ree
+ - 1.9.2
+ - 1.9.3
View
10 Gemfile
@@ -0,0 +1,10 @@
+source "http://rubygems.org"
+gemspec
+
+group :test do
+ gem 'rspec'
+ gem 'rake', '>= 0.8.7'
+end
+
+
+
View
@@ -1 +1,12 @@
-require 'rubygems'
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc "Run specs"
+RSpec::Core::RakeTask.new do |task|
+ task.pattern = "**/spec/*_spec.rb"
+ task.rspec_opts = []
+ task.rspec_opts << '--color'
+ task.rspec_opts << '-f documentation'
+end
View
@@ -653,6 +653,7 @@ def labeled_bar(options = {})
end
it "should be available as a file" do
+ pending "unexpected error under Travis CI (should be fixed using http://martinottenwaelter.fr/2010/12/ruby19-and-the-ssl-error/)"
File.delete('chart.png') if File.exist?('chart.png')
Gchart.line(:data => [0, 26], :format => 'file', :use_ssl => true)
File.exist?('chart.png').should be_true

0 comments on commit 4d1a8f3

Please sign in to comment.