Commit 8ce9360f authored by Ralf's avatar Ralf

add some color to the CI build log

parent 88c12acc
Pipeline #460 passed with stage
# provide some variables to get colorful output
DARKGRAY='0;30'
RED='0;31'
BOLDRED='1;31'
GREEN='0;32'
BOLDGREEN='1;32'
YELLOW='0;33'
BOLDYELLOW='1;33'
BLUE='0;34'
BOLDBLUE='1;34'
PURPLE='0;35'
BOLDPURPLE='1;35'
CYAN='0;36'
WHITE='1;37'
echo_color() {
# $1: the color
# $2: the string
echo -e "\e[${1}m${2}\e[0m"
}
......@@ -23,19 +23,20 @@ if [ ! -d "site" ]; then
echo "This script must be called from within the site directory"
return
fi
. site/ansi-colors.sh
rm -rf output
for TARGET in \
ar71xx-generic ar71xx-tiny ar71xx-nand brcm2708-bcm2708 brcm2708-bcm2709 mpc85xx-generic ramips-mt7621 x86-generic x86-geode x86-64
do
echo "Starting work on target $TARGET"
echo_color "$BOLDGREEN" "Starting work on target $TARGET"
# GLUON_BRANCH configures the default autoupdater branch.
run_and_print make GLUON_TARGET="$TARGET" GLUON_BRANCH=stable GLUON_RELEASE="$RELEASE_VERSION" update
run_and_print make GLUON_TARGET="$TARGET" GLUON_BRANCH=stable GLUON_RELEASE="$RELEASE_VERSION" -j$JOBS
echo -e "\n\n\n============================================================\n\n"
done
echo "Compilation complete, creating and signing manifest(s)"
echo_color "$BOLDGREEN" "Compilation complete, creating and signing manifest(s)"
run_and_print make GLUON_BRANCH=experimental GLUON_RELEASE=$RELEASE_VERSION manifest
run_and_print contrib/sign.sh $SIGNING_KEY output/images/sysupgrade/experimental.manifest
......@@ -56,4 +57,4 @@ then
fi
cd site
echo "Done :)"
echo_color "$BOLDGREEN" "Done :)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment