mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
enable logs for travis
This commit is contained in:
9
tests.sh
9
tests.sh
@@ -25,9 +25,6 @@ which ${nosebin} >/dev/null 2>&1
|
||||
which ${nosebin} >/dev/null 2>&1
|
||||
[ "$?" != "0" ] && echo "Install nosetests" && exit 1
|
||||
|
||||
# do not print debugs when running tests (faster)
|
||||
export DOTDROP_FORCE_NODEBUG=yes
|
||||
|
||||
# coverage file location
|
||||
cur=`dirname $(readlink -f "${0}")`
|
||||
export COVERAGE_FILE="${cur}/.coverage"
|
||||
@@ -38,8 +35,8 @@ PYTHONPATH="dotdrop" ${nosebin} -s --with-coverage --cover-package=dotdrop
|
||||
|
||||
# enable debug logs
|
||||
export DOTDROP_DEBUG=
|
||||
unset DOTDROP_FORCE_NODEBUG
|
||||
# do not print debugs when running tests (faster)
|
||||
unset DOTDROP_FORCE_NODEBUG
|
||||
#export DOTDROP_FORCE_NODEBUG=yes
|
||||
|
||||
## execute bash script tests
|
||||
@@ -47,11 +44,11 @@ unset DOTDROP_FORCE_NODEBUG
|
||||
echo "doing extended tests"
|
||||
log=`mktemp`
|
||||
for scr in tests-ng/*.sh; do
|
||||
echo "Running test ${scr}"
|
||||
if [ -z ${TRAVIS} ]; then
|
||||
${scr} > "${log}" 2>&1 &
|
||||
else
|
||||
${scr} > "${log}" >/dev/null 2>&1 &
|
||||
#${scr} > "${log}" >/dev/null 2>&1 &
|
||||
${scr} &
|
||||
fi
|
||||
tail --pid="$!" -f "${log}"
|
||||
set +e
|
||||
|
||||
Reference in New Issue
Block a user