1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-17 01:30:26 +03:00

ci.sh: log all output to prefixed log.

Log file name: ./ACTION[-regress]-IMPL[-MODE].log

Also debug file name is same format but with ".debug" instead of
".log" suffix.
This commit is contained in:
Joel Martin 2021-04-23 17:03:09 -05:00
parent 69238ec858
commit 21b103f692

8
ci.sh
View File

@ -7,8 +7,6 @@ IMPL=${2}
# Environment variable configuration
BUILD_IMPL=${BUILD_IMPL:-${IMPL}}
log_prefix="../../${IMPL}-${ACTION}${REGRESS:+-regress}"
TEST_OPTS="${TEST_OPTS} --log-file ${log_prefix}.log --debug-file ${log_prefix}.debug"
if [ "${DO_SELF_HOST}" ]; then
MAL_IMPL=${IMPL}
@ -41,6 +39,12 @@ mode_var=${raw_mode_var/-/__}
mode_var=${mode_var/./__}
mode_val=${!mode_var}
log_prefix="${ACTION}${REGRESS:+-regress}-${IMPL}${mode_val:+-${mode_val}}"
TEST_OPTS="${TEST_OPTS} --debug-file ../../${log_prefix}.debug"
# Log everything below this point:
exec &> >(tee ./${log_prefix}.log)
MAKE="make ${mode_val:+${mode_var}=${mode_val}}"
# If NO_DOCKER is blank then launch use a docker image, otherwise use