forked from ringcentral/ringcentral-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.36 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
language: node_js
node_js:
- stable
dist: trusty
cache:
directories:
- $HOME/.npm
- node_modules
addons:
firefox: latest
before_install:
- export BRANCH=$(echo ${TRAVIS_BRANCH} | sed -e 's/\(.*\)/\L\1/' | sed -r 's/[^a-z0-9-]/-/g')
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
before_script:
- DEBUG=eslint:cli-engine npm run lint:all
- npm run build
deploy:
- provider: script
script: npm run publish:release -- --canary --preid=$BRANCH.$TRAVIS_JOB_NUMBER --dist-tag=$BRANCH --yes
skip_cleanup: true
on:
branch: master
tags: false
repo: ringcentral/ringcentral-js
- provider: script
script: npm run publish:release -- $TRAVIS_TAG --yes
skip_cleanup: true
on:
tags: true
repo: ringcentral/ringcentral-js
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file:
- sdk/dist/ringcentral.js
- sdk/dist/ringcentral.js.map
- sdk/dist/ringcentral.min.js
- sdk/dist/ringcentral.min.js.map
- subscriptions/dist/ringcentral-subscriptions.js
- subscriptions/dist/ringcentral-subscriptions.js.map
- subscriptions/dist/ringcentral-subscriptions.min.js
- subscriptions/dist/ringcentral-subscriptions.min.js.map
on:
tags: true
repo: ringcentral/ringcentral-js
after_success:
- npm run test:coverage