-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 945 Bytes
/
.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
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash # Travis's default version is 1.3.2, we need 1.4.2 for nohoist
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add coveralls
install:
- yarn install
language: node_js
node_js:
- '10'
script:
- yarn lint
- yarn typecheck
- yarn test:api
- yarn test --silent --coverage --coverageReporters=text-lcov | coveralls ; test ${PIPESTATUS[0]} -eq 0
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc 2> /dev/null
- yarn global add gitbook-cli
- yarn update-docs
deploy:
- provider: script
skip_cleanup: true
script: ./scripts/lerna-publish.sh
on:
branch: master
- provider: pages
github-token: $GH_TOKEN
keep-history: true
local-dir: gh_pages # The directory to be pushed to gh-pages branch
skip-cleanup: true
on:
branch: master