1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-15 20:50:05 +00:00

refactoring test script

This commit is contained in:
deadc0de6
2018-09-27 16:19:51 +02:00
parent b1e58e8c68
commit f11ca39750

View File

@@ -5,16 +5,22 @@
# stop on first error # stop on first error
set -ev set -ev
# PEP8 tests
pycodestyle --ignore=W605 dotdrop/ pycodestyle --ignore=W605 dotdrop/
pycodestyle tests/ pycodestyle tests/
pycodestyle scripts/ pycodestyle scripts/
# travis # retrieve the nosetests binary
PYTHONPATH=dotdrop nosetests --with-coverage --cover-package=dotdrop set +e
# arch / debian nosebin="nosetests"
#PYTHONPATH=dotdrop python3 -m nose --with-coverage --cover-package=dotdrop which ${nosebin} 2>/dev/null
# others [ "$?" != "0" ] && nosebin="nosetests3"
#PYTHONPATH=dotdrop nosetests -s --with-coverage --cover-package=dotdrop which ${nosebin} 2>/dev/null
[ "$?" != "0" ] && echo "Install nosetests" && exit 1
set -e
# execute tests with coverage
PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop
# execute bash script tests # execute bash script tests
for scr in tests-ng/*.sh; do for scr in tests-ng/*.sh; do