Skip to content

Use cargo-sweep to manage travis caches #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

coolreader18
Copy link
Member

cargo-sweep

The before_cache lifetime script now runs this:

if command -v cargo; then
  ! command -v cargo-sweep && cargo install cargo-sweep
  cargo sweep -i
  cargo sweep -t 15
fi

It first checks that there is rust/cargo installed, as our flake8 script doesn't install the rust toolchain. It then installs cargo-sweep if it isn't already, and removes artifacts from old versions of the rust toolchain and those that are more than 15 days old (by mtime). I'm not sure if that's a good measurement, it might be better if it were longer or shorter.

@windelbouwman windelbouwman merged commit c786109 into master Jul 28, 2019
@coolreader18 coolreader18 deleted the coolreader18/cargo-sweep branch August 2, 2019 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants