diff options
Diffstat (limited to '')
-rw-r--r-- | src/doc/rust-by-example/.travis.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/doc/rust-by-example/.travis.yml b/src/doc/rust-by-example/.travis.yml new file mode 100644 index 000000000..17adda5b9 --- /dev/null +++ b/src/doc/rust-by-example/.travis.yml @@ -0,0 +1,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 |