forked from tsedio/tsed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 1.12 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
language: node_js
cache: yarn
notifications:
webhooks:
urls:
- $GITTER_ROOM_URL
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
node_js:
- 14
- 12
- 10
script: yarn test && (yarn coveralls || true)
jobs:
include:
- stage: deploy-npm
name: 'Deploy packages'
node_js: 12
if: (NOT type IN (pull_request)) AND (branch = production)
script: yarn release
- stage: deploy-artifacts
name: 'Deploy github pages'
if: (NOT type IN (pull_request)) AND (branch = production)
script: monorepo ci configure && git fetch --quiet && git rebase origin/production && yarn docs:publish
- stage: deploy-artifacts
name: 'Deploy examples'
if: (NOT type IN (pull_request)) AND (branch = production)
script: monorepo ci configure && git fetch --quiet && git rebase origin/production && yarn examples:publish
stages:
- test
- deploy-npm
- deploy-artifacts
branches:
except:
- /^v\d+\.\d+\.\d+$/