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