forked from Shopify/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1.24 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
language: node_js
node_js:
- '10.13.0'
cache: yarn
jobs:
include:
- name: 'Type Check'
script:
- yarn run type-check
- 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:
- yarn run storybook:build --quiet
- node ./scripts/pa11y.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'