add cache settings to build with cache on travis.