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:
18
tests.sh
18
tests.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user