1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-22 04:40:03 +01:00

pretier and cleaner run_test.sh

This commit is contained in:
kakwa 2015-07-31 20:30:04 +02:00
parent efcaad54fc
commit 76d8533991

View File

@ -1,4 +1,15 @@
#!/bin/sh
Red='\33[0;31m';
Gre='\33[0;32m';
RCol='\33[0m';
cd `dirname $0`
python setup.py test &&\
pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc .
printf "\nPEP 8 compliance check:\n\n"
pep8 \
--repeat \
--show-source \
--exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . && \
printf "[${Gre}Passed${RCol}] Yeah! everything is clean\n\n" || \
printf "[${Red}Failed${RCol}] Oh No! there is some mess to fix\n\n"