From b483f0b6da84004616e7db268911d79d4a1c0c75 Mon Sep 17 00:00:00 2001 From: David Dorgan Date: Tue, 28 Aug 2018 13:51:07 +0200 Subject: [PATCH] Do not attempt to rustup if in CI. This is taken care of by the base image. --- scripts/init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index ff6929d67c3b8..5dde6d42418b5 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -4,9 +4,12 @@ set -e echo "*** Initialising WASM build environment" -rustup update nightly +if [ -z $CI_PROJECT_NAME ] ; then + rustup update nightly + rustup update stable +fi + rustup target add wasm32-unknown-unknown --toolchain nightly -rustup update stable # Install wasm-gc. It's useful for stripping slimming down wasm binaries. command -v wasm-gc || \