-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (30 loc) · 879 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: false
dist: trusty
language: rust
cache: cargo
rust: stable
addons:
apt:
packages:
- aspell
- aspell-en
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --debug --force mdbook)
- (test -x $HOME/.cargo/bin/mdbook-linkcheck || cargo install --debug --force mdbook-linkcheck)
- cargo install-update -a
script:
- make doc
before_cache:
- find ./target/debug -maxdepth 1 -type f -delete
- rm -rf ./target/debug/incremental
- rm -rf ./target/debug/{deps,.fingerprint}/[0-9][0-9]_[0-9][0-9]_*
- rm -f ./target/.rustc_info.json
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: book/html
on:
branch: master