Skip to content

Commit 19c8316

Browse files
committed
travis: Deploy with pages provider
1 parent 9329a3e commit 19c8316

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
language: rust
22

3+
git:
4+
depth: 1
5+
quiet: true
6+
37
cache: cargo
48

59
env:
@@ -8,13 +12,26 @@ env:
812

913
before_install:
1014
# Normal install of cargo-update
11-
- if [[ ! -f ~/.cargo/bin/cargo-install-update ]]; then cargo install cargo-update; fi
15+
- if [ ! -f ~/.cargo/bin/cargo-install-update ]; then
16+
cargo install cargo-update;
17+
fi
1218
# Conditional install/update of mdbook
1319
- cargo install-update -i mdbook
14-
- export PATH=$HOME/.cargo/bin:$PATH
20+
- export PATH="$HOME/.cargo/bin:$PATH"
1521

1622
script:
1723
- mdbook build
1824

1925
after_success:
2026
- ./deploy.sh
27+
deploy:
28+
- provider: pages
29+
name: "Rust API Guidelines"
30+
31+
skip-cleanup: true
32+
local-dir: book
33+
github-token: $GH_TOKEN
34+
keep-history: false
35+
on:
36+
branch: master
37+
verbose: true

0 commit comments

Comments
 (0)