forked from Shopify/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (43 loc) · 1.46 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
language: node_js
node_js:
- '10.15.0'
cache: yarn
jobs:
include:
- name: 'Type Check and Build'
script:
# Run `type-check` separately as the TypeScript compile that generates
# d.ts files in `build` does not run against test files
- yarn run type-check
- yarn run build
- name: 'Lint'
script:
- yarn run lint
- name: 'Check Custom Properties'
script:
- yarn run check:custom-properties
- name: 'Unit Tests'
script:
- yarn run test --coverage
- yarn run codecov
- name: 'Accessibility Tests'
script:
- STORYBOOK_DISABLE_DOCS=1 yarn run storybook:build --quiet
- node ./scripts/accessibility-check.js
# Travis builds on commit and for PR builds (where Travis merges your last
# commit in a PR into the base branch). There isn't much value uploading info
# to ShrinkRay/Percy/Chroma for these merge commits because they're not
# usefully exposed in their UIs. So skip these jobs on PR builds
- name: 'Shrink Ray'
if: type != 'pull_request'
script:
- node ./scripts/build-shrink-ray.js
- name: 'Percy'
if: type != 'pull_request'
script:
- yarn run storybook:build --quiet
- yarn run percy-storybook --build_dir="build/storybook/static"
- name: 'Chroma'
if: type != 'pull_request'
script:
- yarn run chromatic publish --build-script-name='storybook:build'