File tree 4 files changed +20
-8
lines changed 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 13
13
SHA=$( git rev-parse --verify HEAD)
14
14
15
15
# Clone the existing gh-pages for this repo into out/
16
- (
17
- git clone " $REPO " out
18
- cd out
19
- git checkout $TARGET_BRANCH
20
- )
16
+ git clone -q --single-branch --branch " $TARGET_BRANCH " " $REPO " out
21
17
22
18
echo " Removing the current docs for master"
23
19
rm -rf out/master/ || exit 0
Original file line number Diff line number Diff line change @@ -14,15 +14,24 @@ branches:
14
14
- trying.tmp
15
15
- staging.tmp
16
16
17
+ cache :
18
+ directories :
19
+ - $HOME/.cargo
20
+ before_cache :
21
+ - cargo install -Z install-upgrade cargo-cache --debug
22
+ - cargo cache --autoclean
23
+
17
24
env :
18
25
global :
19
26
- RUST_BACKTRACE=1
20
27
- secure : " OKulfkA5OGd/d1IhvBKzRkHQwMcWjzrzbimo7+5NhkUkWxndAzl+719TB3wWvIh1i2wXXrEXsyZkXM5FtRrHm55v1VKQ5ibjEvFg1w3NIg81iDyoLq186fLqywvxGkOAFPrsePPsBj5USd5xvhwwbrjO6L7/RK6Z8shBwOSc41s="
21
28
22
29
install :
23
30
- |
24
- if [ -z ${INTEGRATION} ]; then
25
- rustup component add rustfmt || cargo install --git https://github.com/rust-lang/rustfmt/ --force
31
+ if [[ -z ${INTEGRATION} ]]; then
32
+ if ! rustup component add rustfmt; then
33
+ cargo install -Z install-upgrade --git https://github.com/rust-lang/rustfmt --bin rustfmt
34
+ fi
26
35
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
27
36
. $HOME/.nvm/nvm.sh
28
37
nvm install stable
Original file line number Diff line number Diff line change @@ -13,12 +13,18 @@ branches:
13
13
- auto
14
14
- try
15
15
16
+ cache :
17
+ - ' %USERPROFILE%\.cargo'
18
+ on_finish :
19
+ - cargo install -Z install-upgrade cargo-cache --debug
20
+ - cargo cache --autoclean
21
+
16
22
install :
17
23
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
18
24
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
19
25
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
20
26
- del rust-toolchain
21
- - cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
27
+ - cargo install -Z install-upgrade rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
22
28
- rustup-toolchain-install-master -f -n master
23
29
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
24
30
- rustup default master
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ cd "$(dirname "$0")" || exit
7
7
8
8
if ! command -v rustup-toolchain-install-master > /dev/null; then
9
9
cargo install \
10
+ -Z install-upgrade \
10
11
rustup-toolchain-install-master \
11
12
--bin rustup-toolchain-install-master \
12
13
--debug
You can’t perform that action at this time.
0 commit comments