From c688312c7c1134ec412c87f51cc6c230a841952c Mon Sep 17 00:00:00 2001 From: Steve Kenworthy Date: Wed, 8 Feb 2012 17:34:41 +0800 Subject: [PATCH] Travis setup for headless. See http://about.travis-ci.org/docs/user/selenium-setup/ --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2955642792..4881006e54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,8 @@ before_install: gem install bundler --pre before_script: - sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi" - sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi" + - "export DISPLAY=:99" + - "sh -e /etc/init.d/xvfb start" # Run RSpec tests and ensure that assets can compile without errors script: "bundle exec rake && bundle exec rake assets:precompile RAILS_ENV=production"