Unverified Commit c38e36b8 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

travis-common.sh: Terminate long jobs on Linux as well.

[ci skip]
parent 7ca0a8cd
......@@ -40,9 +40,10 @@ timed() {
echo "$* took $duration seconds."
echo "whole job took $total_duration seconds so far."
# Terminate on OSX
if [ $total_duration -ge 2400 -a $(uname) = "Darwin" ]; then
echo "Job taking over 40 minutes. Terminating"
# Terminate if the job is taking too long (we must do this to
# preserve the populated cache for the next run).
if [ $total_duration -ge 2400 ]; then
echo "Job taking over 38 minutes. Terminating"
exit 1
echo "----"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment