Merge pull request from rust-lang-nursery/prs

Run travis on rustc-master instead of nightly
This commit is contained in:
Manish Goregaokar 2018-09-03 08:14:45 +05:30 committed by GitHub
commit 1d13c1f998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 16 deletions

@ -50,6 +50,14 @@ matrix:
- env: INTEGRATION=hyperium/hyper
script:
- |
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

@ -89,7 +89,7 @@ Be sure that Clippy was compiled with the same version of rustc that cargo invok
## Configuration
Some lints can be configured in a TOML file named with `clippy.toml` or `.clippy.toml`. It contains basic `variable = value` mapping eg.
Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.
```toml
blacklisted-names = ["toto", "tata", "titi"]

@ -3,20 +3,20 @@ environment:
PROJECT_NAME: rust-clippy
matrix:
#- TARGET: i686-pc-windows-gnu
# MSYS2_BITS: 32
#- TARGET: i686-pc-windows-msvc
# MSYS2_BITS: 32
#- TARGET: x86_64-pc-windows-gnu
# MSYS2_BITS: 64
- TARGET: x86_64-pc-windows-msvc
MSYS2_BITS: 64
install:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- 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
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\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
@ -26,9 +26,6 @@ test_script:
- set RUST_BACKTRACE=1
- cargo build --features debugging
- cargo test --features debugging
#- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
#- cargo clippy -- -D clippy
#- cd clippy_lints && cargo clippy -- -D clippy && cd ..
notifications:
- provider: Email

@ -1,5 +0,0 @@
#!/bin/sh
rm -rf target*/*so
cargo build --lib && cp -R target target_recur && cargo rustc --lib -- -Zextra-plugins=clippy -Ltarget_recur/debug -Dclippy::pedantic -Dclippy::all || exit 1
rm -rf target_recur