[travis] Generate commit automatically in build script