This repository was archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
74 lines (66 loc) · 1.52 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: node_js
node_js:
- 'node'
cache:
directories:
- node_modules
# install: true
stages:
# - install
- test
- name: deploy docs
if: branch = master
- name: release staging
if: branch = staging
- name: release production
if: branch = master
jobs:
include:
# - stage: install
# env:
# - NAME=install
# script: npm i -g npm@latest && npm ci
- stage: test
env:
- NAME=jest
script: npm run test-ci:prod && npm run report-coverage
- stage: test
env:
- NAME=tslint
script: npm run lint-ts
# - stage: test
# env:
# - NAME=stylelint
# script: npm run lint-less
- stage: test
env:
- NAME=webpack
script: npm run webpack
- stage: test
env:
- NAME=storybook
script: npm run storybook-publish
- stage: test
env:
- NAME=typedoc
script: npm run typedoc-publish
- stage: deploy docs
script: npm run storybook-publish && npm run typedoc-publish
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: gh-site
target_branch: gh-pages
on:
all-branches: true
conditon: $TRAVIS_BRANCH =~ ^master$
- stage: release staging
script: npx semantic-release -b staging
- stage: release production
script: npx semantic-release
deploy:
provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN