]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Auto merge of #5110 - Aloso:patch-1, r=flip1995
[rust.git] / .travis.yml
index eac878dee512fa9d58b2e168b2afc7cbd07451af..bd3003d45977ec152a9f11c2db8b4a6adc0d211f 100644 (file)
@@ -26,7 +26,13 @@ env:
 
 before_install:
   - export CARGO_TARGET_DIR="$TRAVIS_BUILD_DIR/target"
-  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
+  - |
+    case "$TRAVIS_OS_NAME" in
+      linux ) HOST=x86_64-unknown-linux-gnu;;
+      osx ) HOST=x86_64-apple-darwin;;
+      windows ) HOST=x86_64-pc-windows-msvc;;
+    esac
+  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-host="$HOST" --default-toolchain=nightly --profile=minimal
   - export PATH="$HOME/.cargo/bin:$PATH"
 install:
   - |