forked from Workday/canvas-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (69 loc) · 4.34 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
75
76
77
78
79
80
81
82
language: node_js
node_js:
- "10"
# if using Ubuntu 16 need this library
# https://github.com/cypress-io/cypress-documentation/pull/1647
addons:
apt:
packages:
- libgconf-2-4
# cache both yarn and Cypress binary
cache:
yarn: true
directories:
- ~/.cache
git:
depth: 3
stages:
- name: pull_request
if: type = pull_request
- name: master
if: branch = master AND type != pull_request
- name: tag
if: branch =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND tag IS present
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install --production=false
jobs:
include:
- stage: pull_request
script:
- yarn lint
- yarn test
- yarn chromatic --exit-zero-on-changes
- yarn start & npx wait-on http://localhost:9001
- yarn cypress run --record
- kill $(jobs -p) || true
env:
- CHROMATIC_APP_CODE="dlpro96xybh"
- CYPRESS_RECORD_KEY="3a9347b6-36ab-4a36-823d-709f4078b148"
- stage: tag
script:
- yarn build
deploy:
provider: script
script: npm config set //registry.npmjs.org/:_authToken=$NPM_PUBLISH_TOKEN && yarn lerna publish from-package --yes --pre-dist-tag prerelease
skip_cleanup: true
on:
tags: true
- stage: master
script:
- yarn chromatic --auto-accept-changes
- yarn build-storybook
env:
- CHROMATIC_APP_CODE="dlpro96xybh"
deploy:
provider: pages
skip_cleanup: true
local_dir: docs
github_token: "$GH_STORYBOOK_TOKEN"
on:
branch: master
env:
global:
- secure: 2mf5LOhqAmYsMKOoVK+4F9Yym0Y7CvrgyHZcSMsezFB/8PowxdPKDfHuw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