Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 0ed03b2

Browse files
committed
Tweak CI config
Download a precompiled mdbook binary for speedier builds and use a deploy ssh key instead of a github token for deployment.
1 parent 3b1a27e commit 0ed03b2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
sudo: false
2-
dist: trusty
31
language: rust
42

53
before_install:
6-
- cargo install mdbook --vers '0.2.2' --debug --force
4+
- curl -L https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-musl.tar.gz | tar xzf -
5+
- export PATH=$PATH:`pwd`
76

87
script:
98
- mdbook build
109

1110
deploy:
12-
provider: pages
13-
skip-cleanup: true
14-
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
15-
local-dir: book
16-
keep-history: false
11+
provider: script
12+
script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd book && ../rust_out)
13+
skip_cleanup: true
1714
on:
1815
branch: master

0 commit comments

Comments
 (0)