diff --git a/.travis.yml b/.travis.yml index 077a17e0bace..bf8c7bcca35d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,10 @@ install: - npm install remark-cli remark-lint script: + - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed" + - RUSTC_HEAD=`git ls-remote https://github.com/rust-lang/rust.git HEAD | tr -d ",." | tr " \t" "\n" | grep -e "HEAD" -v` + - travis_retry rustup-toolchain-install-master $RUSTC_HEAD + - rustup default $RUSTC_HEAD - PATH=$PATH:./node_modules/.bin - remark -f *.md > /dev/null - set -e diff --git a/appveyor.yml b/appveyor.yml index 32ea8c62a2de..4625b1c05821 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,11 @@ install: - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin + - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed" + - set RUSTC_HEAD=`git ls-remote https://github.com/rust-lang/rust.git HEAD | tr -d ",." | tr " \t" "\n" | grep -e "HEAD" -v` + - rustup-toolchain-install-master %RUSTC_HEAD% + - rustup default %RUSTC_HEAD% + - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\%RUSTC_HEAD%\bin - rustc -V - cargo -V