Add xvfb start to travis config. Use xvfb in specs.

This commit is contained in:
Sarah Mei 2011-09-03 13:23:20 -07:00
parent 722a2a86ea
commit 3fe6f47648
2 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,7 @@
bundler_args: "--without development production"
rvm:
- ree
# - 1.9.2
- 1.9.2
before_script:
- "sass --update public/stylesheets/sass/:public/stylesheets/"
@ -9,6 +9,7 @@ before_script:
- "rake db:create"
- "rake db:schema:load"
- "rspec spec --tag fixture"
- "sh -e /etc/init.d/xvfb start"
script: "bundle exec rake travis"
env: "TRAVIS=true"
notifications:

View file

@ -21,10 +21,8 @@ namespace :cruise do
end
task :travis do
["rspec spec", "rake cucumber", "jasmine:ci"].each do |cmd|
system("bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
system('export DISPLAY=:99.0 && CI=true bundle exec rake')
raise "tests failed!" unless $?.exitstatus == 0
end
end
task :cruise => "cruise:cruise"