File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ SSH_REPO=${REPO/https:\/\/github.com\//
[email protected] :}
1313SHA=$( git rev-parse --verify HEAD)
1414
1515# 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
2117
2218echo " Removing the current docs for master"
2319rm -rf out/master/ || exit 0
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ branches:
1414 - trying.tmp
1515 - staging.tmp
1616
17+ cache :
18+ directories :
19+ - $HOME/.cargo
20+ before_cache :
21+ - cargo install -Z install-upgrade cargo-cache --debug
22+ - cargo cache --autoclean
23+
1724env :
1825 global :
1926 - RUST_BACKTRACE=1
2229install :
2330 - |
2431 if [ -z ${INTEGRATION} ]; then
25- rustup component add rustfmt || cargo install --git https://github.com/rust-lang/rustfmt/ --force
32+ if ! rustup component add rustfmt; then
33+ cargo install \
34+ -Z install-upgrade \
35+ --git https://github.com/rust-lang/rustfmt \
36+ --bin rustfmt
37+ fi
2638 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
2739 . $HOME/.nvm/nvm.sh
2840 nvm install stable
@@ -122,13 +134,10 @@ script:
122134 fi
123135
124136after_success : |
125- #!/bin/bash
126137 if [ "$TRAVIS_OS_NAME" == "linux" ]; then
127- set -ex
128138 if [ -z ${INTEGRATION} ]; then
129139 ./.github/deploy.sh
130140 else
131141 echo "Not deploying, because we're in an integration test run"
132142 fi
133- set +e
134143 fi
Original file line number Diff line number Diff line change @@ -13,12 +13,18 @@ branches:
1313 - auto
1414 - try
1515
16+ cache :
17+ - ' %USERPROFILE%\.cargo'
18+ on_finish :
19+ - cargo install -Z install-upgrade cargo-cache --debug
20+ - cargo cache --autoclean
21+
1622install :
1723 - curl -sSf -o rustup-init.exe https://win.rustup.rs/
1824 - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
1925 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
2026 - del rust-toolchain
21- - cargo install -- git https://github.com/kennytm/rustup-toolchain-install-master --debug || echo " rustup-toolchain-install-master already installed"
27+ - cargo install -Z install-upgrade -- git https://github.com/kennytm/rustup-toolchain-install-master --bin rustup-toolchain-install-master --debug
2228 - rustup-toolchain-install-master -f -n master -c rustc-dev
2329 - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
2430 - rustup default master
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ cd "$(dirname "$0")" || exit
55
66if ! command -v rustup-toolchain-install-master > /dev/null; then
77 cargo install \
8+ -Z install-upgrade \
89 --git https://github.com/kennytm/rustup-toolchain-install-master \
910 --bin rustup-toolchain-install-master \
1011 --debug
You can’t perform that action at this time.
0 commit comments