-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
60 lines (53 loc) · 1.26 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
language: node_js
node_js:
- node
- 12
- 10
- 8
env:
- SKIP_PREFLIGHT_CHECK=true
cache: yarn
before_install:
- export PATH=$PATH:`yarn global bin`
- yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
script:
- yarn eslint ./src
- yarn mdspell --en-gb --ignore-numbers --ignore-acronyms docs/**/*.md
- yarn flow check
- yarn flow-annotation-check
- npx flow-coverage-report -t text
- yarn rebuild:integration-fixtures
- yarn react-scripts test --coverage
- yarn codecov
- yarn build-storybook -o 'docs/storybook'
- |
NODE_ENV=production \
PUBLIC_URL=https://pinterest.github.io/bonsai/analyze/ \
REACT_APP_API_LIST_ENDPOINT=/bonsai/example-index.json \
REACT_APP_EXTERNAL_URL_PREFIX= \
yarn react-scripts build && \
mv build docs/analyze
- yarn build:cli
after_script:
- greenkeeper-lockfile-upload
before_deploy:
- yarn predeploy
deploy:
- provider: pages
target_branch: gh-pages
local_dir: docs
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
repo: pinterest/bonsai
branch: master
node: node
- provider: npm
api_key: $NPM_API_KEY
email: "ryan@ryanalbrecht.ca"
on:
repo: pinterest/bonsai
tags: true
node: node