forked from ngx-material-keyboard/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (51 loc) · 1.4 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
# this is a node build
language: node_js
# cache node modules
cache:
directories:
- "node_modules"
# use npm 5.3.0 due to a bug (https://github.com/npm/npm/issues/19222)
before_install:
- npm i -g [email protected]
# install dependencies
install:
- npm install --silent
# the jobs for building and deplyoing docs and demo
jobs:
include:
- stage: build core, docs and demo
script: npm run build:core
before_deploy:
- cd dist/core
deploy:
provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_KEY
on:
tags: true
repo: ngx-material-keyboard/core
branch: master
- # stage name not required, will continue to use `build core, docs and demo`
script: npm run build:docs
deploy:
provider: pages
skip_cleanup: true
local_dir: dist/docs
github_token: $GITHUB_TOKEN
target_branch: gh-pages
on:
repo: ngx-material-keyboard/core
branch: master
- # stage name not required, will continue to use `build core, docs and demo`
script: npm run build:demo
deploy:
provider: pages
skip_cleanup: true
local_dir: dist/demo
github_token: $GITHUB_TOKEN
repo: ngx-material-keyboard/demo
target_branch: master
on:
repo: ngx-material-keyboard/core
branch: master