Skip to content

Commit 0b39946

Browse files
committed
travis: break out before_script stage to test setup-toolchain work
1 parent 63a4cd6 commit 0b39946

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

+4-1
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')
@@ -109,11 +109,14 @@ script:
109109
- |
110110
rm rust-toolchain
111111
./setup-toolchain.sh
112+
- |
112113
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
113114
export PATH=$PATH:$(rustc --print sysroot)/bin
114115
else
115116
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
116117
fi
118+
119+
script:
117120
- |
118121
if [ -z ${INTEGRATION} ]; then
119122
travis_wait 30 ./ci/base-tests.sh && sleep 5

0 commit comments

Comments
 (0)