Skip to content

Commit

Permalink
Hoping to fix Issue:238 - travis reporting success even when spec fai…
Browse files Browse the repository at this point in the history
…lures
  • Loading branch information
steveyken committed Mar 1, 2013
1 parent 666d6a1 commit 25beda2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ matrix:

bundler_args: --path=vendor/bundle --without heroku

before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

before_script:
- sh -c "cp config/database.$DB.yml config/database.yml"
- 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 specs
script: "bundle exec rake"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ GEM
ffaker (1.14.0)
ffi (1.2.0)
haml (3.1.7)
headless (0.2.2)
headless (1.0.1)
highline (1.6.15)
hike (1.2.1)
htmlentities (4.3.1)
Expand Down
3 changes: 0 additions & 3 deletions spec/acceptance/support/headless.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
headless = Headless.new
headless.start
HEADLESS_DISPLAY = ":#{headless.display}"
at_exit do
headless.destroy
end
puts "Running in Headless mode. Display #{HEADLESS_DISPLAY}"
end

0 comments on commit 25beda2

Please sign in to comment.