diff --git a/.travis.yml b/.travis.yml index c6bd67ae0f3..08fdf2fb6d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 98f712c28d8..69dba57f460 100644 --- a/README.md +++ b/README.md @@ -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"] diff --git a/appveyor.yml b/appveyor.yml index 32ea8c62a2d..94f9500ab85 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/util/dogfood.sh b/util/dogfood.sh deleted file mode 100755 index bebe0e82a7f..00000000000 --- a/util/dogfood.sh +++ /dev/null @@ -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 -