2018-11-14 06:47:52 +11:00
|
|
|
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.1" mdbook)
|
|
|
|
- cargo install-update -a
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cargo check && cargo check --release
|
2018-11-15 13:54:48 +11:00
|
|
|
# exclude the examples from the test build, just the lib
|
|
|
|
- cargo test --lib && cargo test --lib --release
|
2018-11-14 06:47:52 +11:00
|
|
|
- cd book && mdbook build
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip-cleanup: true
|
|
|
|
github-token: $GITHUB_TOKEN
|
|
|
|
target-branch: master
|
|
|
|
keep-history: true
|
|
|
|
name: DocsBot
|
|
|
|
verbose: true
|
|
|
|
on:
|
|
|
|
branch: master
|