Permalink
Browse files

travis setup

Use capybara-webkit
Build against multiple rubies
  • Loading branch information...
1 parent a34eb74 commit 23fba1ad4349fc22012286009d966fed0e872810 @chrismytton chrismytton committed Sep 18, 2011
Showing with 15 additions and 0 deletions.
  1. +9 −0 .travis.yml
  2. +6 −0 Rakefile
View
@@ -0,0 +1,9 @@
+before_script: "sh -e /etc/init.d/xvfb start"
+script: "bundle exec rake travis"
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - rbx-2.0
+ - ruby-head
+ - ree
View
@@ -57,3 +57,9 @@ def remote_version
doc = Nokogiri::HTML(open($fancybox_feed))
doc.css('entry:first title').text.match(/\d\.\d\.\d/)[0]
end
+
+task :travis do
+ puts "Starting to run rake travis"
+ system("export DISPLAY=:99.0 && bundle exec rake")
+ raise "rake travis failed!" unless $?.exitstatus == 0
+end

0 comments on commit 23fba1a

Please sign in to comment.