Skip to content

Commit 6392222

Browse files
committed
add travis
1 parent 234e448 commit 6392222

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
5+
cache:
6+
directories:
7+
- "node_modules"
8+
9+
branches:
10+
only:
11+
- master
12+
13+
install:
14+
- npm install -g gitbook-cli
15+
- gitbook build
16+
17+
script:
18+
- echo "Skipping tests"
19+
20+
deploy:
21+
provider: pages
22+
skip-cleanup: true
23+
github-token: $GITHUB_ACCESS_TOKEN_TRAVIS_CI # Set in travis-ci.org dashboard, marked secure https://docs.travis-ci.com/user/deployment/pages/#Setting-the-GitHub-token
24+
target-branch: gh-pages
25+
local-dir: _book
26+
on:
27+
branch: master

0 commit comments

Comments
 (0)