aboutsummaryrefslogtreecommitdiff
path: root/ci/install.sh
blob: aee01b39e049b00f00ce6d67c337f85c3e856743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
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