summaryrefslogtreecommitdiffstats
path: root/src/doc/rust-by-example/.travis.yml
blob: 17adda5b9c97006e457e65c02fe96ce2697c8389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: false
language: rust
rust:
  - nightly
branches:
  only:
  - master
before_script:
  - |
    set -ex
    rustup --version
    rustc -Vv
    curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
    mdbook --version
    rustup toolchain update nightly -c rust-docs
script:
  - mdbook build
  - mdbook test
  - |
    set -e
    curl -sSLo linkcheck.sh \
        https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
    sh linkcheck.sh --all rust-by-example