Add dependency caching in travis-ci build