From 79d81ac3e78a0e2d48b973550933460b67f483f8 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 3 Sep 2018 09:12:06 +0530 Subject: [PATCH] Remove dependence of ci on github token --- .travis.yml | 5 ++--- appveyor.yml | 13 +++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08fdf2fb6..8d76e1098 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,13 +51,12 @@ matrix: script: - | - if [ -n "$GITHUB_TOKEN" ]; then rm rust-toolchain cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed" - travis_retry rustup-toolchain-install-master -f -n master --github-token $GITHUB_TOKEN + RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}') + travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH rustup default master export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib - fi - | if [ -z ${INTEGRATION} ]; then ./ci/base-tests.sh diff --git a/appveyor.yml b/appveyor.yml index 94f9500ab..f50d1e88a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,12 +11,13 @@ install: - curl -sSf -o rustup-init.exe https://win.rustup.rs/ - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - # https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses - - if defined GITHUB_TOKEN del rust-toolchain - - if defined GITHUB_TOKEN (cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed") - - if defined GITHUB_TOKEN rustup-toolchain-install-master -f -n master --github-token %GITHUB_TOKEN% - - if defined GITHUB_TOKEN rustup default master - - if defined GITHUB_TOKEN set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin + - git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt + - set /p RUSTC_HASH=