forked from aframevr/aframe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (43 loc) · 952 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: required
dist: trusty
language: node_js
addons:
firefox: 'latest'
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
node_js:
- '4.6'
install:
- npm install
# Firefox.
- ./node_modules/.bin/mozilla-download ./firefox/ --product firefox --branch mozilla-aurora
- export FIREFOX_NIGHTLY_BIN="./firefox/firefox/firefox-bin"
# Chrome.
- export CHROME_BIN=/usr/bin/google-chrome
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- $CI_ACTION
env:
global:
- TEST_SUITE=unit
- TEST_ENV=ci
matrix:
- CI_ACTION="npm run test:firefox -- --single-run"
- CI_ACTION="npm run test:chrome -- --single-run"
- CI_ACTION="npm run test:node"
- CI_ACTION="npm run lint"
- CI_ACTION="npm run build"
- CI_ACTION="npm run test:docs"
branches:
only:
- master
after_success:
- npm run codecov
cache:
directories:
- node_modules