From b7ed262ddad8bc7f491650dde96c178582866937 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Wed, 23 Jan 2019 20:02:43 -0500 Subject: [PATCH 1/5] Try out `cargo-sweep` --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c929ca3dccd..f5c560b4d85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ cache: cargo: true directories: - $HOME/.npm -before_cache: script/ci/prune-cache.sh +before_cache: + - cargo sweep -f + - script/ci/prune-cache.sh env: global: @@ -26,11 +28,13 @@ env: - PERCY_PROJECT=crates-io/crates.io install: - - script/ci/cargo-clean-on-new-rustc-version.sh + - cargo install --force cargo-sweep + - cargo sweep -i - cargo install --force diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH before_script: - diesel database setup + - cargo sweep -s addons: chrome: stable From 33db3374b0978c8eb5731dd0160acff808c17399 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Wed, 23 Jan 2019 23:27:03 -0500 Subject: [PATCH 2/5] Kick off a new CI build to see how much of the cache can be used From cacab6ffdee72490bfd05a5d25de3baaa72d8e2c Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Wed, 23 Jan 2019 23:53:52 -0500 Subject: [PATCH 3/5] Move sweep timestamp to before diesel_cli is installed --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f5c560b4d85..dc1785ac21f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,11 +30,11 @@ env: install: - cargo install --force cargo-sweep - cargo sweep -i + - cargo sweep -s - cargo install --force diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH before_script: - diesel database setup - - cargo sweep -s addons: chrome: stable From 157884de60389491a1ee97a9e7e8cc54df80a28e Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Thu, 24 Jan 2019 00:15:06 -0500 Subject: [PATCH 4/5] Move sweep timestamp even earlier This assumes that cargo-sweep is already present in the cache. I've added `|| true` so that this can bootstrap if the cache is cleared. This is not intended to be a long-term solution. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dc1785ac21f..8509b867c5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,9 +28,9 @@ env: - PERCY_PROJECT=crates-io/crates.io install: + - cargo sweep -s || true - cargo install --force cargo-sweep - cargo sweep -i - - cargo sweep -s - cargo install --force diesel_cli --vers `cat .diesel_version` --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH before_script: From a897de6254abbd1db834b05328f6acac4c35d78f Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Thu, 24 Jan 2019 00:41:26 -0500 Subject: [PATCH 5/5] Why didn't travis see my changes last time?