1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

hide debug logs in travis

This commit is contained in:
deadc0de6
2020-08-07 17:25:36 +02:00
parent 9bb2722345
commit dad31efb1f

View File

@@ -37,16 +37,20 @@ PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop
#PYTHONPATH=dotdrop python3 -m pytest tests
# enable debug logs
#export DOTDROP_DEBUG=
#unset DOTDROP_FORCE_NODEBUG
export DOTDROP_DEBUG=
unset DOTDROP_FORCE_NODEBUG
# do not print debugs when running tests (faster)
export DOTDROP_FORCE_NODEBUG=yes
#export DOTDROP_FORCE_NODEBUG=yes
## execute bash script tests
[ "$1" = '--python-only' ] || {
log=`mktemp`
for scr in tests-ng/*.sh; do
${scr} > "${log}" 2>&1 &
if [ -z ${TRAVIS} ]; then
${scr} > "${log}" 2>&1 &
else
${scr} > "${log}" 2>&1 >/dev/null &
fi
tail --pid="$!" -f "${log}"
set +e
wait "$!"