-# Save tagged docker images we created and load them if they're available
-# Travis saves caches whether the build failed or not, nuke rustsrc if
-# the failure was while updating it (as it may be in a bad state)
-# https://github.com/travis-ci/travis-ci/issues/4472
-before_cache:
- - docker history -q rust-ci |
- grep -v missing |
- xargs docker save |
- gzip > $HOME/docker/rust-ci.tar.gz
-