26 lines
460 B
YAML
26 lines
460 B
YAML
language: rust
|
|
sudo: false
|
|
|
|
cache:
|
|
- cargo
|
|
|
|
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.4.15" mdbook)
|
|
- cargo install-update -a
|
|
|
|
script:
|
|
- mdbook build ./ && mdbook test ./
|
|
|
|
deploy:
|
|
provider: pages
|
|
skip-cleanup: true
|
|
github-token: $GITHUB_TOKEN
|
|
local-dir: ./book
|
|
keep-history: false
|
|
on:
|
|
branch: master
|