代码拉取完成,页面将自动刷新
同步操作将从 smooth/avocado-misc-tests 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
language: python
matrix:
python:
- "3.8"
- "3.9"
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
sudo: false
install:
- pip install -r requirements-travis.txt
script:
- inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E0203,E711,W605,E721 --no-license-check
- inspekt indent
- inspekt style
- |
error=""
for COMMIT in $(git rev-list $TRAVIS_COMMIT_RANGE); do
echo
echo "-----< $(git log -1 --oneline $COMMIT) >-----"
msg=$(git show -s --format=%B $COMMIT)
# Skip merge commits
if [ $(echo "${msg::4}") == 'Merg' ]
then
continue
fi
# Skip some commits which make travis fail due to commit message
list='8fd5b57 840e774 c35ffeb'
for item in $list
do
if [ "$COMMIT" == "$item" ]; then
echo "In the list"
continue
fi
done
# Test commit message size
if [ $(echo "$msg" | wc -l) -ge 5 ]
then
echo "OK: Commit message size."
else
echo "ERR: Commit message is too short (less than 5 lines)."
echo " Here a minimal template:"
echo " ------------------------------------"
echo " header <- Limited to 50 characters. No period."
echo " <- Blank line"
echo " message <- Any number of lines, limited to 72 characters per line."
echo " <- Blank line"
echo " Signed-off-by: <- Signature (created by git commit -s)"
echo " ------------------------------------"
error=true
fi
# Test commit message signature
if echo "$msg" | grep -q 'Signed-off-by:'
then
echo "OK: 'Signed-off-by:' present."
else
echo "ERR: 'Signed-off-by:' not found (use '-s' in 'git commit')."
error=true
fi
done
# Look for errors
if [ "$error" ]; then
echo
echo "Incremental smokecheck failed."
exit 1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。