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:
parent
561af1245f
commit
b7e493b4e4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue