forked from ringcentral/ringcentral-web-phone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (59 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: node_js
node_js:
- stable
dist: trusty
addons:
apt:
packages:
- gcc
- g++
- libstdc++6
- pulseaudio
#TODO Use Xenial https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services
#dist: xenial
#services:
# - xvfb
#addons:
# chrome: stable
#script: xvfb-run --auto-servernum --server-num=1 npm test
cache:
directories:
- $HOME/.npm
- node_modules
before_install:
- export CHROME_BIN=chromium-browser
#- export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- pulseaudio --start
before_script:
- DEBUG=eslint:cli-engine npm run lint:all
before_deploy:
- npm run build
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: dist
on:
branch: master
- provider: npm
email: [email protected]
api_key: $NPM_TOKEN
skip_cleanup: true
on:
node: stable
tags: true
repo: ringcentral/ringcentral-web-phone
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file:
- dist/ringcentral-web-phone.js
on:
node: stable
tags: true
repo: ringcentral/ringcentral-web-phone
after_success:
- npm run test:coverage