set -ex main() { curl https://sh.rustup.rs -sSf | \ sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION local target= if [ $TRAVIS_OS_NAME = linux ]; then target=x86_64-unknown-linux-gnu sort=sort echo 'APT::Default-Release "trusty";' | sudo tee /etc/apt/apt.conf.d/01ubuntu echo 'deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list echo <