File tree Expand file tree Collapse file tree 3 files changed +25
-21
lines changed Expand file tree Collapse file tree 3 files changed +25
-21
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Set up the appropriate rustc toolchain
33
4+ set -e
5+
46cd " $( dirname " $0 " ) " || exit
57
68if ! 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
1213fi
You can’t perform that action at this time.
0 commit comments