diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-10 21:46:53 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-10 21:46:53 +0100 |
commit | cf3fd3cf62b624b492a8f9cdfc72867ab7305767 (patch) | |
tree | 0e9aff68dcc4074cdd6b2996949c997101bc7100 /check | |
parent | a0c62a17f539adc4b1a13eec3d3d0f99081a0f33 (diff) | |
parent | 13ff05e4518b3892f7ea7ebe495f23a868a29baa (diff) | |
download | ttystatus-cf3fd3cf62b624b492a8f9cdfc72867ab7305767.tar.gz |
Merge: Python 3 support
Diffstat (limited to 'check')
-rwxr-xr-x | check | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -2,7 +2,26 @@ set -eu -python -m CoverageTestRunner --ignore-missing-from=without-tests +title() +{ + printf '\n\n%s\n' "$@" + for i in $(seq 77) + do + printf "-" + done + printf '\n' +} + +title "Python2 unit tests" +python2 -m CoverageTestRunner --ignore-missing-from=without-tests +rm -f .coverage + +title "Python3 unit tests" +python3 -m CoverageTestRunner --ignore-missing-from=without-tests rm -f .coverage -pep8 ttystatus -PYTHONPATH=. pylint --rcfile=pylint.conf ttystatus + +title "Style checks" +pycodestyle ttystatus + +title "Static checks" +PYTHONPATH=. pylint3 --rcfile=pylint.conf ttystatus |