Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit fa3fc7a

Browse files
committed
Use rustup-toolchain-install-master on CI
1 parent eb61d77 commit fa3fc7a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: rust
22
rust: nightly
33
sudo: false
44

5+
cache: cargo
6+
57
notifications:
68
email:
79
on_failure: always

ci/run.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ set -ex
55
export RUST_BACKTRACE=full
66
#export RUST_TEST_NOCAPTURE=1
77

8-
rustup component add rustc-dev
8+
cargo +nightly install rustup-toolchain-install-master
9+
if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
10+
rustup-toolchain-install-master -f -n master -c rustc-dev -i x86_64-pc-windows-msvc
11+
else
12+
rustup-toolchain-install-master -f -n master -c rustc-dev
13+
fi
14+
rustup override set master
915

1016
cargo build
1117
cargo test --verbose -- --nocapture
@@ -20,7 +26,6 @@ case "${TRAVIS_OS_NAME}" in
2026
TEST_TARGET=x86_64-unknown-linux-gnu cargo test --verbose -- --nocapture
2127
;;
2228
*"windows"*)
23-
rustup target add x86_64-pc-windows-msvc
2429
TEST_TARGET=x86_64-pc-windows-msvc cargo test --verbose -- --nocapture
2530
;;
2631
*"macos"*)

0 commit comments

Comments
 (0)