update travis to test book and publish

This commit is contained in:
Niko Matsakis 2019-01-31 10:33:28 -05:00
parent e5d9409d46
commit fd61e392d0
2 changed files with 21 additions and 3 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
**/*.rs.bk
Cargo.lock
TAGS
nikom

View file

@ -1,12 +1,29 @@
language: rust
sudo: false
rust:
- nightly
- beta
- stable
cache:
- cargo
matrix:
allow_failures:
- rust: nightly
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
- cargo install-update -a
script:
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --all
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --tests --all
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --examples --all
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --all
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --tests --all
- RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo test --examples --all
- cd book && mdbook build && mdbook test
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: path/to/mybook/book
keep-history: false
on:
branch: master