catalyst-auto: run trigger_post_build after every successful spec, to export results sooner.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2017-12-14 19:44:41 -08:00
parent 561af1245f
commit b7e493b4e4
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -115,6 +115,13 @@ catalyst_var() {
(. "${CATALYST_CONFIG}"; echo "${!var}")
}
trigger_post_build() {
if ! run_cmd "${TMPDIR}/log/post_build.log" post_build; then
send_email "Catalyst build error - post_build" "The post_build function failed" "${TMPDIR}/log/post_build.log"
exit 1
fi
}
# Parse args
while [ ${#} -gt 0 ]
do
@ -334,6 +341,8 @@ for a in "" ${SETS}; do
build_failure=1
send_email "Catalyst fatal build error - ${i}" "" "${LOGFILE}"
continue 2
else
trigger_post_build
fi
done
@ -344,6 +353,8 @@ for a in "" ${SETS}; do
build_failure=1
send_email "Catalyst non-fatal build error - ${i}" "" "${LOGFILE}"
break
else
trigger_post_build
fi
done
@ -355,10 +366,7 @@ for a in "" ${SETS}; do
update_symlinks
done
if ! run_cmd "${TMPDIR}/log/post_build.log" post_build; then
send_email "Catalyst build error - post_build" "The post_build function failed" "${TMPDIR}/log/post_build.log"
exit 1
fi
trigger_post_build
if [ ${build_failure} = 0 ]; then
if [[ ${lastrun} -ne 0 ]]; then