2012年7月19日 星期四

Jenkins Python Scripts


Execute shell 
echo "clonedigger ...."                                                                             
clonedigger --cpd-output -o clonedigger.xml .
 
Execute shell
echo "pep8 ...."
#pep8 --filename=*.py  . > pep8.txt
find . -name "*.py" -exec pep8 {} \; >> pep8.txt
Execute shell
echo "pylint ...."
for f in `find . -name "*.py"`; do
pylint --output-format=parseable --reports=y $f >> pylint.log
done || : 

Execute shell
sloccount --duplicates --wide --details *.py | fgrep -v .svn > sloccount.sc || :
Execute shell
echo "pyflakes ...."
for f in `find . -name "*.py"`; do
pyflakes $f >> pyflakes.log
done || :




Reference :
How to use Jenkins for python development

沒有留言:

張貼留言