forked from computestdev/Openrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 949 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
25
26
27
28
29
30
language: node_js
node_js:
- "node"
env:
global:
- DISPLAY=:100
- TEST_FIREFOX_BIN=/usr/bin/firefox
install:
- npm install
- npm ls
jobs:
include:
- stage: test
env: TEST_SUITE=lint,unit,integration
sudo: required
dist: trusty
before_install:
- lsb_release -a
- sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
- sudo apt-get update
- sudo apt-get install -y xvfb openbox firefox
- '"$TEST_FIREFOX_BIN" --version'
before_script:
- Xvfb "$DISPLAY" -ac -noreset -screen 0 1024x768x16 &
# Firefox can crash if you do not have a window manager
# (for example when window.open() tries to maximize the new window)
- openbox &
script:
- npm run lint
- npm run test:unit:coveralls