test 1 travis

This commit is contained in:
Carl Fredrik Samson
2020-01-25 15:22:17 +01:00
parent 192861428f
commit 5be7bd8203
2 changed files with 25 additions and 29 deletions

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
language: rust
sudo: false
cache:
- cargo
rust:
- stable
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
- cargo install-update -a
script:
- mdbook build path/to/mybook && mdbook test path/to/mybook
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_DEPLOY_KEY
local-dir: path/to/mybook/book
keep-history: false
on:
branch: master