Skip to content

Commit 6271f56

Browse files
committed
Auto merge of #5009 - lzutao:travis-windows-msvc, r=phansch
Travis: Use windows-msvc target for Windows build changelog: none closes #5005
2 parents 62ff639 + a2b3b5a commit 6271f56

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ env:
2626

2727
before_install:
2828
- export CARGO_TARGET_DIR="$TRAVIS_BUILD_DIR/target"
29-
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
29+
- |
30+
case "$TRAVIS_OS_NAME" in
31+
linux ) HOST=x86_64-unknown-linux-gnu;;
32+
osx ) HOST=x86_64-apple-darwin;;
33+
windows ) HOST=x86_64-pc-windows-msvc;;
34+
esac
35+
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-host="$HOST" --default-toolchain=nightly --profile=minimal
3036
- export PATH="$HOME/.cargo/bin:$PATH"
3137
install:
3238
- |

0 commit comments

Comments
 (0)