Skip to content

Commit 7df24c3

Browse files
committed
Auto merge of #4668 - lzutao:update-rtim, r=flip1995
build: switch back to latest official RTIM release Closes #4666 changelog: none
2 parents 55e7818 + 0b39946 commit 7df24c3

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

.travis.yml

+21-18
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ matrix:
9191
- os: osx
9292
- os: windows
9393

94-
script:
94+
before_script:
9595
- |
9696
if [ "$TRAVIS_BRANCH" == "auto" ] || [ "$TRAVIS_BRANCH" == "try" ]; then
9797
pr=$(echo $TRAVIS_COMMIT_MESSAGE | grep -o "#[0-9]*" | head -1 | sed 's/^#//g')
@@ -107,28 +107,31 @@ script:
107107
fi
108108
fi
109109
- |
110-
rm rust-toolchain
111-
./setup-toolchain.sh
112-
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
113-
export PATH=$PATH:$(rustc --print sysroot)/bin
114-
else
115-
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
116-
fi
110+
rm rust-toolchain
111+
./setup-toolchain.sh
112+
- |
113+
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
114+
export PATH=$PATH:$(rustc --print sysroot)/bin
115+
else
116+
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
117+
fi
118+
119+
script:
117120
- |
118121
if [ -z ${INTEGRATION} ]; then
119122
travis_wait 30 ./ci/base-tests.sh && sleep 5
120123
else
121124
./ci/integration-tests.sh && sleep 5
122125
fi
123126
124-
after_success: |
125-
#!/bin/bash
126-
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
127-
set -ex
128-
if [ -z ${INTEGRATION} ]; then
129-
./.github/deploy.sh
130-
else
131-
echo "Not deploying, because we're in an integration test run"
127+
after_success:
128+
- |
129+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
130+
set -e
131+
if [ -z ${INTEGRATION} ]; then
132+
./.github/deploy.sh
133+
else
134+
echo "Not deploying, because we're in an integration test run"
135+
fi
136+
set +e
132137
fi
133-
set +e
134-
fi

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install:
1818
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
1919
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
2020
- del rust-toolchain
21-
- cargo install --git https://github.com/kennytm/rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
21+
- cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
2222
- rustup-toolchain-install-master -f -n master
2323
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
2424
- rustup default master

setup-toolchain.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22
# Set up the appropriate rustc toolchain
33

4+
set -e
5+
46
cd "$(dirname "$0")" || exit
57

68
if ! command -v rustup-toolchain-install-master > /dev/null; then
79
cargo install \
8-
--git https://github.com/lzutao/rustup-toolchain-install-master \
9-
--rev c44dbf920b644000ac3ba01184cbb1a01bb91519 \
10+
rustup-toolchain-install-master \
1011
--bin rustup-toolchain-install-master \
1112
--debug
1213
fi

0 commit comments

Comments
 (0)