mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 12:16:11 +00:00
add debug mode in ci/cd
This commit is contained in:
12
tests.sh
12
tests.sh
@@ -41,9 +41,6 @@ pylint \
|
|||||||
--disable=C0209 \
|
--disable=C0209 \
|
||||||
dotdrop/
|
dotdrop/
|
||||||
|
|
||||||
# do not print debugs when running tests (faster)
|
|
||||||
export DOTDROP_FORCE_NODEBUG=yes
|
|
||||||
|
|
||||||
# coverage file location
|
# coverage file location
|
||||||
rl="readlink -f"
|
rl="readlink -f"
|
||||||
if ! ${rl} "${0}" >/dev/null 2>&1; then
|
if ! ${rl} "${0}" >/dev/null 2>&1; then
|
||||||
@@ -65,18 +62,19 @@ fi
|
|||||||
if [ -z ${GITHUB_WORKFLOW} ]; then
|
if [ -z ${GITHUB_WORKFLOW} ]; then
|
||||||
## local
|
## local
|
||||||
export COVERAGE_FILE=
|
export COVERAGE_FILE=
|
||||||
|
# do not print debugs when running tests (faster)
|
||||||
|
unset DOTDROP_DEBUG
|
||||||
|
export DOTDROP_FORCE_NODEBUG=yes
|
||||||
|
# tests
|
||||||
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0
|
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0
|
||||||
else
|
else
|
||||||
## CI/CD
|
## CI/CD
|
||||||
export COVERAGE_FILE="${cur}/.coverage"
|
export COVERAGE_FILE="${cur}/.coverage"
|
||||||
|
# tests
|
||||||
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop
|
PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop
|
||||||
fi
|
fi
|
||||||
#PYTHONPATH="dotdrop" python3 -m pytest tests
|
#PYTHONPATH="dotdrop" python3 -m pytest tests
|
||||||
|
|
||||||
# disable debug logs
|
|
||||||
unset DOTDROP_DEBUG
|
|
||||||
export DOTDROP_FORCE_NODEBUG=yes
|
|
||||||
|
|
||||||
tmpworkdir="/tmp/dotdrop-tests-workdir"
|
tmpworkdir="/tmp/dotdrop-tests-workdir"
|
||||||
export DOTDROP_WORKDIR="${tmpworkdir}"
|
export DOTDROP_WORKDIR="${tmpworkdir}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user