mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-24 12:58:37 +00:00
update travis to test book and publish
This commit is contained in:
parent
e5d9409d46
commit
fd61e392d0
2 changed files with 21 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
TAGS
|
||||
nikom
|
||||
|
|
23
.travis.yml
23
.travis.yml
|
@ -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
|
Loading…
Reference in a new issue