Skip to content

Commit 20c79d1

Browse files
committed
Build and deploy book in Travis CI
1 parent 48769e7 commit 20c79d1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: rust
2+
sudo: false
3+
4+
cache:
5+
- cargo
6+
7+
rust:
8+
- stable
9+
10+
before_script:
11+
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
12+
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
13+
- cargo install-update -a
14+
15+
script:
16+
- ./generate-book.sh
17+
18+
deploy:
19+
provider: pages
20+
skip-cleanup: true
21+
github-token: $GITHUB_TOKEN
22+
local-dir: book
23+
keep-history: false
24+
on:
25+
branch: master

0 commit comments

Comments
 (0)