Browse files

start xvfb before running tests

  • Loading branch information...
1 parent 957b0e7 commit e00d50c126938451a01f7ebe343afd55d5593550 @citrus committed Dec 13, 2011
Showing with 5 additions and 8 deletions.
  1. +5 −1 .travis.yml
  2. +0 −7 Rakefile
View
6 .travis.yml
@@ -5,4 +5,8 @@ rvm:
- rbx
- ree
-script: "bundle exec dummier && bundle exec rake travis"
+before_script:
+ - "sh -e /etc/init.d/xvfb start"
+ - "bundle exec dummier"
+
+script: "DISPLAY=:99.0 bundle exec rake"
View
7 Rakefile
@@ -7,11 +7,4 @@ Rake::TestTask.new do |t|
t.pattern = 'test/**/*_test.rb'
end
-desc "Sets display port and runs tests on travis-ci"
-task :travis do
- puts "Starting to run rake test..."
- system("export DISPLAY=:99.0 && bundle exec rake test")
- raise "rake test failed!" unless $?.exitstatus == 0
-end
-
task :default => :test

0 comments on commit e00d50c

Please sign in to comment.