about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-16 04:13:38 +0000
committerbors <bors@rust-lang.org>2019-10-16 04:13:38 +0000
commit07c06738b75e047ecf45b0041fcfcbebafed5edd (patch)
treed5697cd94b91b6d196ad63401d7d95d3b6570318
parent52cebb1f8f8789b97d243c07bf4c961ca0017f7b (diff)
parent7de7d0c97b84053b5e049f4aa8a5d86a201b6c4a (diff)
downloadrust-07c06738b75e047ecf45b0041fcfcbebafed5edd.tar.gz
rust-07c06738b75e047ecf45b0041fcfcbebafed5edd.zip
Auto merge of #4669 - lzutao:minimal-rustup, r=phansch
build: use rustup minimal profile to speed up Rust installation time

changelog: none
-rw-r--r--.travis.yml8
-rw-r--r--appveyor.yml2
2 files changed, 6 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 59e384cfaf3..6439fe82bba 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,5 @@
-language: rust
-
-rust: nightly
+dist: xenial
+language: minimal
 
 os:
   - linux
@@ -19,6 +18,9 @@ env:
    - RUST_BACKTRACE=1
    - secure: "OKulfkA5OGd/d1IhvBKzRkHQwMcWjzrzbimo7+5NhkUkWxndAzl+719TB3wWvIh1i2wXXrEXsyZkXM5FtRrHm55v1VKQ5ibjEvFg1w3NIg81iDyoLq186fLqywvxGkOAFPrsePPsBj5USd5xvhwwbrjO6L7/RK6Z8shBwOSc41s="
 
+before_install:
+  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
+  - export PATH="$HOME/.cargo/bin:$PATH"
 install:
   - |
     if [ -z ${INTEGRATION} ]; then
diff --git a/appveyor.yml b/appveyor.yml
index c13bf711ae3..b28ff5273e4 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -15,7 +15,7 @@ branches:
 
 install:
     - curl -sSf -o rustup-init.exe https://win.rustup.rs/
-    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
+    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
     - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
     - del rust-toolchain
     - cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"