Travis allowed for a persistent store, in the conf...
# core
t
Travis allowed for a persistent store, in the configure you would specify a directory and that job would save the state on a successful build. I used that in the past along with setting ccache’s local storage.