Permalink
Browse files

Added Jasmine headless task

  • Loading branch information...
1 parent cb56337 commit c2867bb5df9cc935311518ebaac1f314b5173ebe @kylewelsby committed Oct 7, 2011
Showing with 14 additions and 2 deletions.
  1. +2 −2 .travis.yml
  2. +12 −0 Rakefile
View
@@ -1,6 +1,6 @@
rvm: 1.9.2
gemfile: Gemfile
before_script:
- - "sh -e /etc/init.d/xvfb start" #Start selenium
+ # - "sh -e /etc/init.d/xvfb start" #Start selenium
env: DISPLAY=:99.0 #use selenium
-script: "bundle exec rake jasmine:ci"
+script: "bundle exec rake jasmine:headless"
View
@@ -69,6 +69,18 @@ rescue LoadError
end
end
+begin
+ require 'jasmine-headless-webkit'
+
+ Jasmine::Headless::Task.new
+
+ task :default => 'jasmine:headless'
+rescue LoadError
+ task 'jasmine:headless' do
+ abort 'jasmine-headless-webkit-travis-test not installed.'
+ end
+end
+
desc "Continuious Intergration"
task :ci do

0 comments on commit c2867bb

Please sign in to comment.