forked from GoogleChromeLabs/sw-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
sudo: true
language: node_js
env:
global:
- FF_BETA_PATH: './firefox/firefox'
node_js:
- 'stable'
addons:
# From some tests it seems you can only have one firefox addon.
# Adding two results in the last one defined being the one installed.
firefox: latest
# Current broken on Travis 15/March/2016
#apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
# - google-chrome-beta
before_install:
# Chrome Stable
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install -y google-chrome-stable
# Beta currently has dependencies that can't be met
# - sudo apt-get install -y google-chrome-beta
# Get firefbox beta and extract to tar for the test runner to use.
- wget 'https://download.mozilla.org/?product=firefox-beta-latest&lang=en-US&os=linux64' -O firefox-beta.tar.bz2 && tar xvjf firefox-beta.tar.bz2
# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"