Merge pull request #11678 from cmonr/travis-ci-debugging

Travis CI: Fixed issue where jobs are getting stalled/timing out
pull/11649/head
Martin Kojtal 2019-10-14 09:49:34 +02:00 committed by GitHub
commit 31fb3f929b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -93,6 +93,9 @@ _fetch_deps()
{
local pkg="${1}"
local dep_list="${2}"
local pid_list=""
local PID;
info "Fetching '${pkg}' archives"
@ -103,9 +106,17 @@ _fetch_deps()
|| die "Download failed ('${dep}')" \
&& info "Fetched ${deps_url}/${dep}.deb" &
PID=$!
pid_list="${pid_list} ${PID}"
done <<< "${dep_list}"
wait
# Ignoring shellcheck warning, since we need to allow parameter expansion to
# turn the list string into parametesr.
# shellcheck disable=SC2086
wait ${pid_list}
info "Fetch completed."
}