Skip to content

Travis cache fixes #1843

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 2 commits into from
Sep 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/ci/cargo-clean-on-new-rustc-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

manual_stamp_file=target/ci_manual_stamp
manual_stamp=6 # Change this to force a clean build on CI
manual_stamp=7 # Change this to force a clean build on CI

if [ -f $manual_stamp_file ]; then
if echo "$manual_stamp" | cmp -s $manual_stamp_file -; then
Expand Down
2 changes: 1 addition & 1 deletion script/ci/prune-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ du -hs target/debug

crate_name="cargo-registry"
test_name="all"
bin_names="delete-crate delete-version populate render-readmes server test-pagerduty transfer-crates update-downloads background-worker monitor"
bin_names="background-worker delete-crate delete-version enqueue-job monitor populate render-readmes server test-pagerduty transfer-crates"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could generate this list to avoid having to manually maintain it, e.g.

cargo metadata --format-version 1 |
    jq -r '.packages[] | select(.name == "cargo-registry") | .targets[] | select(.kind == ["bin"]) | .name'


normalized_crate_name=${crate_name//-/_}
rm -v target/debug/$normalized_crate_name-*
Expand Down