ldapcherry/run_test.sh

16 lines
390 B
Bash
Raw Normal View History

2015-04-14 16:04:33 +02:00
#!/bin/sh
2015-07-31 20:30:04 +02:00
Red='\33[0;31m';
Gre='\33[0;32m';
RCol='\33[0m';
2015-04-14 16:04:33 +02:00
cd `dirname $0`
2015-07-11 22:26:08 +02:00
python setup.py test &&\
2015-07-31 20:30:04 +02:00
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"