1set -ex 2 3if [ "$CLIPPY" = "yes" ]; then 4 rustup component add clippy-preview 5fi 6 7if [ "$RUSTFMT" = "yes" ]; then 8 rustup component add rustfmt 9fi 10 11 12if [ "$DOCS" = "yes" ]; then 13 cargo install mdbook --no-default-features 14 cargo install mdbook-linkcheck 15 sudo apt-get update 16 sudo apt-get install python-pip 17 sudo pip install python-dateutil 18fi 19 20if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GNUPLOT" = "yes" ]; then 21 brew unlink python@2 # because we're installing python3 and they both want to install stuff under /usr/local/Frameworks/Python.framework/ 22 brew install gnuplot 23fi 24