-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
24 lines (24 loc) · 858 Bytes
/
.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
language: node_js
node_js:
- "node"
# Normally, travis runs your script in a docker container.
# I've had firefox crash in docker containers (firefox tries to use linux namespaces, just like docker)
# "sudo: required" causes travis to use a VM instead.
sudo: required
dist: trusty
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y xvfb openbox chromium-browser firefox
install:
- npm install
script:
- lsb_release -a
- firefox --version
- chromium-browser --version
- Xvfb :100 -ac -noreset -screen 0 1024x768x16 &
- export DISPLAY=:100.0
- export CHROME_BIN=/usr/bin/chromium-browser
# Firefox can crash if you do not have a window manager
# (for example when window.open() tries to maximize the new window)
- openbox &
- npm test