Skip to content

Commit

Permalink
Auto merge of #4752 - lzutao:cache/uninstall-clippy, r=flip1995
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Oct 29, 2019
2 parents 3156e09 + 55c3a3b commit 000c3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions ci/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 000c3ff

Please sign in to comment.