Skip to content

Commit

Permalink
Travis setup for headless. See http://about.travis-ci.org/docs/user/s…
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken authored and ndbroadbent committed Feb 23, 2012
1 parent 2cde028 commit c688312
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c688312

Please sign in to comment.