Skip to content

Commit 9bacc31

Browse files
committed
Set up xvfb on travis
1 parent 4a3d6bc commit 9bacc31

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
rvm:
23
- 2.4.2
34
bundler_args: "--without debug development"
@@ -9,5 +10,6 @@ before_script:
910
- export SECRET_KEY_BASE="$(bundle exec rake secret)"
1011
- cp config/database.travis.yml config/database.yml
1112
- psql -c 'create database hours_test' -U postgres
12-
- export DISPLAY=:99.0
13-
- sh -e /etc/init.d/xvfb start
13+
- "export DISPLAY=:99.0"
14+
- "sh -e /etc/init.d/xvfb start"
15+
- sleep 3 # give xvfb some time to start

0 commit comments

Comments
 (0)