remove deploy logs support

the logs are mostly pointless (because of all '.')
This commit is contained in:
Girish Ramakrishnan 2016-09-21 11:53:35 -07:00
parent 2ceda75d5d
commit 90333cc98a

View File

@ -6,7 +6,6 @@ export DEBUG=superagent-sync,e2e:*,imap-probe
export DEBUG_COLORS=true export DEBUG_COLORS=true
test_pids=() test_pids=()
test_logs=()
# before # before
rm -f logs/* rm -f logs/*
@ -23,14 +22,8 @@ for t in "${tests[@]}"; do
EXEC_LOG_FILE="logs/${t}-cloudron-cli.log" ./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 & EXEC_LOG_FILE="logs/${t}-cloudron-cli.log" ./node_modules/.bin/mocha --bail "test/${t}.js" > "logs/${t}.log" 2>&1 &
test_pids+=("$!") test_pids+=("$!")
echo "Starting test ${t} with pid ${test_pids[-1]}" echo "Starting test ${t} with pid ${test_pids[-1]}"
test_logs+=("logs/${t}.log")
done done
# stream all the logs (to stderr so that it's not in email but in deploy logs)
sleep 10 # wait for cloudron-update-test.log to get created (since it's a background subshell)
tail -f ${test_logs[*]} >&2 &
tail_pid=$!
# wait for tests to finish # wait for tests to finish
fail=0 fail=0
echo "Waiting for jobs to finish" echo "Waiting for jobs to finish"
@ -41,8 +34,6 @@ for pid in "${test_pids[@]}"; do
fi fi
done done
kill -9 "${tail_pid}"
# after # after
echo "After" echo "After"
if ! ./node_modules/.bin/mocha --bail test/after.js > "logs/after.js" 2>&1; then if ! ./node_modules/.bin/mocha --bail test/after.js > "logs/after.js" 2>&1; then