Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Travis has pretty good support for caching rust builds now by store the .cargo directory. This would enable this build to rebuild mdbook every time.
From my test, it looks like the average build time will go from ~10 minutes to ~1 minute.
The one potential downside to this is mdbook won't be rebuilt with new nightly versions of Rust. Presumably this doesn't matter though since the version of mdbook is pinned, and upgrading it would require running one build with
cargo install --force --version =<new-version>
, and then removing the--force
again (otherwise it would always rebuild and thus remove the point of caching it). It doesn't seem like the version of mdbook is getting updated regularly though so this seems like it shouldn't be too big of a burden.