-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
39 lines (36 loc) · 950 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
# CI pipeline for the Vi-Ui live demo
#
# We're currently assessing the possibility of hosting this live demo
# in our own cloud infrastructure.
# An alternative is using Netlify's hosting service, but I believe an
# S3 static-site bucket will do just as well.
language: node_js
node_js:
- '10'
jobs:
include:
- stage: test
script:
- npm run test
- npm run coverage:collect
- stage: build
script:
- echo "This is the build phase"
- npm run build
- npm run styleguide:build
deploy:
- provider: pages
skip_cleanup: true
fqdn: viui.dev
commiter_from_gh: true
github_token: $GITHUB_TOKEN
on:
tags: true
target_branch: gh-pages
local_dir: docs
- provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
tags: true