# `install` phase: install stuff needed for the `script` phase set -ex # Install multirust git clone https://github.com/brson/multirust pushd multirust ./build.sh ./install.sh --prefix=~/multirust multirust default $CHANNEL rustc -V cargo -V popd case "$TRAVIS_OS_NAME" in linux) host=x86_64-unknown-linux-gnu ;; osx) host=x86_64-apple-darwin ;; esac # Install standard libraries needed for cross compilation if [ "$host" != "$TARGET" ]; then if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then # information about the cross compiler arm-linux-gnueabihf-gcc -v # tell cargo which linker to use for cross compilation mkdir -p .cargo cat >>.cargo/config <