File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,14 @@ matrix:
50
50
- env : INTEGRATION=hyperium/hyper
51
51
52
52
script :
53
- - rm rust-toolchain
54
- - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
55
- - travis_retry rustup-toolchain-install-master -f -n master
56
- - rustup default master
53
+ - |
54
+ if [ -n "$GITHUB_TOKEN" ]; then
55
+ rm rust-toolchain
56
+ cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
57
+ travis_retry rustup-toolchain-install-master -f -n master --github-token $GITHUB_TOKEN
58
+ rustup default master
59
+ export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
60
+ fi
57
61
- |
58
62
if [ -z ${INTEGRATION} ]; then
59
63
./ci/base-tests.sh
Original file line number Diff line number Diff line change @@ -8,14 +8,15 @@ environment:
8
8
- TARGET : x86_64-pc-windows-msvc
9
9
10
10
install :
11
- - del rust-toolchain
12
11
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
13
12
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
14
- - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
15
- - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
16
- - rustup-toolchain-install-master -f -n master
17
- - rustup default master
18
- - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
13
+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
14
+ # https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses
15
+ - if defined GITHUB_TOKEN del rust-toolchain
16
+ - if defined GITHUB_TOKEN (cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed")
17
+ - if defined GITHUB_TOKEN rustup-toolchain-install-master -f -n master --github-token %GITHUB_TOKEN%
18
+ - if defined GITHUB_TOKEN rustup default master
19
+ - if defined GITHUB_TOKEN set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
19
20
- rustc -V
20
21
- cargo -V
21
22
You can’t perform that action at this time.
0 commit comments