-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
47 lines (38 loc) · 962 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
language: node_js
dist: xenial
services:
- xvfb
addons:
apt:
packages:
- libgconf-2-4
cache:
yarn: true
directories:
- ~/.cache/Cypress
node_js: 13.9
before_install:
- npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
- export DISPLAY=:99.0
before_script:
- DEBUG=eslint:cli-engine yarn lint:all
- yarn build
deploy:
- provider: script
script: yarn publish:release ${TRAVIS_TAG} --yes
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_TAG != "" && $TRAVIS_TAG != *"-"*
repo: ringcentral/web-apps
- provider: script
script: yarn publish:release ${TRAVIS_TAG} --yes --dist-tag next
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_TAG == *"-"*
repo: ringcentral/web-apps
after_success:
- mkdir .vercel
- echo $VERCEL_PROJECT > .vercel/project.json
- if [[ ${TRAVIS_BRANCH} == "master" ]]; then yarn vercel --prod --token=$VERCEL_TOKEN --no-clipboard; fi