You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
601 B

set -ex
if [ "$CLIPPY" = "yes" ]; then
rustup component add clippy-preview
fi
if [ "$RUSTFMT" = "yes" ]; then
rustup component add rustfmt
fi
if [ "$DOCS" = "yes" ]; then
cargo install mdbook --no-default-features
cargo install mdbook-linkcheck
sudo apt-get update
sudo apt-get install python-pip
sudo pip install python-dateutil
fi
if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GNUPLOT" = "yes" ]; then
brew unlink python@2 # because we're installing python3 and they both want to install stuff under /usr/local/Frameworks/Python.framework/
brew install gnuplot
fi