mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-25 04:50:21 +00:00
22 lines
448 B
Bash
Executable file
22 lines
448 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -o errexit -o nounset
|
|
|
|
echo "Running $0"
|
|
|
|
if [ -z "${TRAVIS_BRANCH:-}" ]; then
|
|
echo "This script may only be run from Travis!"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "${CONTENT_TESTS:-}" == 1 ]]; then
|
|
echo "Installing additional dependencies"
|
|
|
|
if [[ "${CONTENT_TESTS_LINKS:-}" == 1 ]]; then
|
|
pyenv global system 3.6
|
|
pip3 install --user link-checker==0.1.0
|
|
fi
|
|
cargo install mdbook --vers '0.1.8' --debug
|
|
fi
|
|
|
|
exit 0
|