2018-09-30 11:39:52 +00:00
|
|
|
language: rust
|
2019-01-31 15:33:28 +00:00
|
|
|
sudo: false
|
|
|
|
|
2018-09-30 11:39:52 +00:00
|
|
|
rust:
|
2018-12-13 10:32:16 +00:00
|
|
|
- nightly
|
2018-10-09 19:42:07 +00:00
|
|
|
- beta
|
2018-12-13 10:32:16 +00:00
|
|
|
- stable
|
2019-01-31 15:33:28 +00:00
|
|
|
cache:
|
|
|
|
- cargo
|
2018-12-13 10:32:16 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2019-01-31 15:33:28 +00:00
|
|
|
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
|
2018-09-30 11:39:52 +00:00
|
|
|
script:
|
2019-01-31 15:33:28 +00:00
|
|
|
- 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
|
2019-01-31 21:02:28 +00:00
|
|
|
local-dir: book/book
|
2019-01-31 15:33:28 +00:00
|
|
|
keep-history: false
|
|
|
|
on:
|
|
|
|
branch: master
|