Auto merge of #4752 - lzutao:cache/uninstall-clippy, r=flip1995

build: do not cache clippy binaries in integration tests

We rebuild clippy anyway. So caching them is needless

```console
% ls -lF target/debug
total 628M
drwxr-xr-x 22 lzutao lzutao 4.0K Oct 29 04:02 build/
drwxr-xr-x  2 lzutao lzutao 144K Oct 29 04:03 deps/
drwxr-xr-x  2 lzutao lzutao 4.0K Oct 29 03:57 examples/
drwxr-xr-x 11 lzutao lzutao 4.0K Oct 29 04:03 incremental/
-rwxr-xr-x  2 lzutao lzutao 3.4M Oct 29 04:03 cargo-clippy*
-rw-r--r--  1 lzutao lzutao  11K Oct 29 03:58 cargo-clippy.d
-rwxr-xr-x  2 lzutao lzutao 313M Oct 29 04:03 clippy-driver*
-rw-r--r--  1 lzutao lzutao  11K Oct 29 03:58 clippy-driver.d
-rw-r--r--  1 lzutao lzutao  11K Oct 29 04:03 libclippy.d
-rwxr-xr-x  2 lzutao lzutao 312M Oct 29 04:03 libclippy.so*
```

changelog: none
This commit is contained in:
bors 2019-10-29 09:41:27 +00:00
commit 000c3ff278
2 changed files with 2 additions and 1 deletions

View File

@ -13,8 +13,8 @@ cache:
- $HOME/.cargo
before_cache:
- cargo install -Z install-upgrade cargo-cache --debug
- cargo cache --autoclean
- find $HOME/.cargo/bin/ ! -type d -exec strip {} \;
- cargo cache --autoclean
env:
global:

View File

@ -28,6 +28,7 @@ cargo clippy \
-W clippy::nursery \
> clippy_output 2>&1 || true
cargo uninstall clippy
cat clippy_output
if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then