mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 20:14:16 +00:00
hide debug logs in travis
This commit is contained in:
12
tests.sh
12
tests.sh
@@ -37,16 +37,20 @@ PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop
|
|||||||
#PYTHONPATH=dotdrop python3 -m pytest tests
|
#PYTHONPATH=dotdrop python3 -m pytest tests
|
||||||
|
|
||||||
# enable debug logs
|
# enable debug logs
|
||||||
#export DOTDROP_DEBUG=
|
export DOTDROP_DEBUG=
|
||||||
#unset DOTDROP_FORCE_NODEBUG
|
unset DOTDROP_FORCE_NODEBUG
|
||||||
# do not print debugs when running tests (faster)
|
# do not print debugs when running tests (faster)
|
||||||
export DOTDROP_FORCE_NODEBUG=yes
|
#export DOTDROP_FORCE_NODEBUG=yes
|
||||||
|
|
||||||
## execute bash script tests
|
## execute bash script tests
|
||||||
[ "$1" = '--python-only' ] || {
|
[ "$1" = '--python-only' ] || {
|
||||||
log=`mktemp`
|
log=`mktemp`
|
||||||
for scr in tests-ng/*.sh; do
|
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}"
|
tail --pid="$!" -f "${log}"
|
||||||
set +e
|
set +e
|
||||||
wait "$!"
|
wait "$!"
|
||||||
|
|||||||
Reference in New Issue
Block a user