Fixed the execution order in travis-script