travis systemvm tests

This commit is contained in:
Daan Hoogland 2021-02-10 12:52:54 +00:00
parent d1400b531c
commit 1db2b314ab
1 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@ export PYTHONPATH="../debian/opt/cloud/bin/"
export PYTHONDONTWRITEBYTECODE=False
echo "Running pycodestyle to check systemvm/python code for errors"
python -m pycodestyle --max-line-length=179 *py
python -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
python3 -m pycodestyle --max-line-length=179 *py
python3 -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
if [ $? -gt 0 ]
then
echo "pycodestyle failed, please check your code"
@ -31,8 +31,8 @@ then
fi
echo "Running pylint to check systemvm/python code for errors"
python -m pylint --disable=R,C,W *.py
python -m pylint --disable=R,C,W `find ../debian -name \*.py`
python3 -m pylint --disable=R,C,W *.py
python3 -m pylint --disable=R,C,W `find ../debian -name \*.py`
if [ $? -gt 0 ]
then
echo "pylint failed, please check your code"