Modify buildtestpublish_all.sh
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 25s
Build-Test-Publish / build (linux/arm64) (push) Failing after 28s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 25s
Build-Test-Publish / build (linux/arm64) (push) Failing after 28s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
parent
ef7470dcce
commit
54af706032
@ -2,6 +2,12 @@
|
|||||||
set -uo pipefail # Remove -e to handle errors manually
|
set -uo pipefail # Remove -e to handle errors manually
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
|
|
||||||
|
# Colors for output
|
||||||
|
RED='\033[0;31m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
YELLOW='\033[1;33m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
# Arrays to track results
|
# Arrays to track results
|
||||||
declare -A BUILD_RESULTS
|
declare -A BUILD_RESULTS
|
||||||
declare -A TEST_RESULTS
|
declare -A TEST_RESULTS
|
||||||
@ -166,9 +172,36 @@ function print_summary() {
|
|||||||
local test_status="${TEST_RESULTS[$project]:-'-'}"
|
local test_status="${TEST_RESULTS[$project]:-'-'}"
|
||||||
local publish_status="${PUBLISH_RESULTS[$project]:-'-'}"
|
local publish_status="${PUBLISH_RESULTS[$project]:-'-'}"
|
||||||
|
|
||||||
printf "│ %-*s │ %-7s │ %-7s │ %-7s │\n" \
|
# Format status with proper spacing and colors for Unicode characters
|
||||||
|
local build_col test_col publish_col
|
||||||
|
|
||||||
|
# Format build status
|
||||||
|
case "$build_status" in
|
||||||
|
"✓") build_col=" ${GREEN}✓${NC} " ;;
|
||||||
|
"✗") build_col=" ${RED}✗${NC} " ;;
|
||||||
|
"SKIP") build_col=" ${YELLOW}-${NC} " ;;
|
||||||
|
*) build_col=" - " ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Format test status
|
||||||
|
case "$test_status" in
|
||||||
|
"✓") test_col=" ${GREEN}✓${NC} " ;;
|
||||||
|
"✗") test_col=" ${RED}✗${NC} " ;;
|
||||||
|
"SKIP") test_col=" ${YELLOW}-${NC} " ;;
|
||||||
|
*) test_col=" - " ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Format publish status
|
||||||
|
case "$publish_status" in
|
||||||
|
"✓") publish_col=" ${GREEN}✓${NC} " ;;
|
||||||
|
"✗") publish_col=" ${RED}✗${NC} " ;;
|
||||||
|
"SKIP") publish_col=" ${YELLOW}-${NC} " ;;
|
||||||
|
*) publish_col=" - " ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
printf "│ %-*s │%b│%b│%b│\n" \
|
||||||
$max_project_width "$project" \
|
$max_project_width "$project" \
|
||||||
"$build_status" "$test_status" "$publish_status"
|
"$build_col" "$test_col" "$publish_col"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Print bottom border
|
# Print bottom border
|
||||||
|
Loading…
x
Reference in New Issue
Block a user