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
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,6 +14,13 @@ 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
22
29
install :
23
30
- |
24
31
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
26
38
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
27
39
. $HOME/.nvm/nvm.sh
28
40
nvm install stable
@@ -122,13 +134,10 @@ script:
122
134
fi
123
135
124
136
after_success : |
125
- #!/bin/bash
126
137
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
127
- set -ex
128
138
if [ -z ${INTEGRATION} ]; then
129
139
./.github/deploy.sh
130
140
else
131
141
echo "Not deploying, because we're in an integration test run"
132
142
fi
133
- set +e
134
143
fi
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 -- 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
22
28
- rustup-toolchain-install-master -f -n master -c rustc-dev
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 @@ -5,6 +5,7 @@ cd "$(dirname "$0")" || exit
5
5
6
6
if ! command -v rustup-toolchain-install-master > /dev/null; then
7
7
cargo install \
8
+ -Z install-upgrade \
8
9
--git https://github.com/kennytm/rustup-toolchain-install-master \
9
10
--bin rustup-toolchain-install-master \
10
11
--debug
You can’t perform that action at this time.
0 commit comments