Skip to content

Commit c9b2b93

Browse files
committed
Drafting config for running Firefox+Selenium on Travis
1 parent 4b4b3b9 commit c9b2b93

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ rvm:
1212
# Add more Ruby versions to list if supported,
1313
# Travis supports these versions: http://rubies.travis-ci.org/
1414

15+
addons:
16+
firefox: "37.0.2" # Set Firefox Version
17+
18+
# Use xvfb to setup fake monitor display so Firefox GUI can be used by specs:
19+
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-GUI-(e.g.-a-Web-browser)
20+
before_install:
21+
- "export DISPLAY=:99.0"
22+
- "sh -e /etc/init.d/xvfb start"
23+
1524
# 4. OPTIONAL Only customize the `script` option if needed.
1625

1726
# The `script` option is an optional list of the main build task(s). `rake` is
@@ -27,4 +36,5 @@ rvm:
2736
# Getting Started: http://docs.travis-ci.com/user/getting-started/
2837
# Ruby & Travis CI docs: http://docs.travis-ci.com/user/languages/ruby/
2938
# Supported Ruby Versions: http://rubies.travis-ci.org/
30-
# Custom build task: http://docs.travis-ci.com/user/customizing-the-build/
39+
# Custom build task: http://docs.travis-ci.com/user/customizing-the-build/
40+
# GUI, Browsers, xvfb: http://docs.travis-ci.com/user/gui-and-headless-browsers/

0 commit comments

Comments
 (0)