Resolve travis-ci dependencies in proper order