Add LD_LIBRARY_PATH and GITHUB_TOKEN

This commit is contained in:
flip1995 2018-08-22 18:08:52 +02:00
parent 97a9332014
commit 205db6f686
No known key found for this signature in database
GPG Key ID: ECF9412261FAA470
2 changed files with 15 additions and 10 deletions

View File

@ -50,10 +50,14 @@ matrix:
- env: INTEGRATION=hyperium/hyper
script:
- rm rust-toolchain
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
- travis_retry rustup-toolchain-install-master -f -n master
- rustup default master
- |
if [ -n "$GITHUB_TOKEN" ]; then
rm rust-toolchain
cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
travis_retry rustup-toolchain-install-master -f -n master --github-token $GITHUB_TOKEN
rustup default master
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
fi
- |
if [ -z ${INTEGRATION} ]; then
./ci/base-tests.sh

View File

@ -8,14 +8,15 @@ environment:
- TARGET: x86_64-pc-windows-msvc
install:
- del rust-toolchain
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
- rustup-toolchain-install-master -f -n master
- rustup default master
- set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
# https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses
- if defined GITHUB_TOKEN del rust-toolchain
- if defined GITHUB_TOKEN (cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed")
- if defined GITHUB_TOKEN rustup-toolchain-install-master -f -n master --github-token %GITHUB_TOKEN%
- if defined GITHUB_TOKEN rustup default master
- if defined GITHUB_TOKEN set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
- rustc -V
- cargo -V