同步操作将从 PaddlePaddle/Paddle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bashTOTAL_ERRORS=0if [[ ! $TRAVIS_BRANCH ]]; then# install cpplint on local machine.if [[ ! $(which cpplint) ]]; thenpip install cpplintfi# diff files on local machine.files=$(git diff --cached --name-status | awk '1ドル != "D" {print 2ドル}')else# diff files between PR and latest commit on Travis CI.branch_ref=$(git rev-parse "$TRAVIS_BRANCH")head_ref=$(git rev-parse HEAD)files=$(git diff --name-status $branch_ref $head_ref | awk '1ドル != "D" {print 2ドル}')fi# The trick to remove deleted files: https://stackoverflow.com/a/2413151for file in $files; doif [[ $file =~ ^(patches/.*) ]]; thencontinue;elsecpplint --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11 $file;TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?);fidoneexit $TOTAL_ERRORS
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。