Skip to content

Commit

Permalink
Set up xvfb on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jurre committed Jan 22, 2020
1 parent 4a3d6bc commit 9bacc31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
rvm:
- 2.4.2
bundler_args: "--without debug development"
Expand All @@ -9,5 +10,6 @@ before_script:
- export SECRET_KEY_BASE="$(bundle exec rake secret)"
- cp config/database.travis.yml config/database.yml
- psql -c 'create database hours_test' -U postgres
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

0 comments on commit 9bacc31

Please sign in to comment.