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