From: Tim 'mithro' Ansell Date: Sun, 4 Mar 2018 02:09:05 +0000 (-0800) Subject: travis: Adding some color. X-Git-Tag: 24jan2021_ls180~1724^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bf50479542dd3de7d4933c8e610663ed242ce33;p=litex.git travis: Adding some color. --- diff --git a/.travis-build-socs.sh b/.travis-build-socs.sh index 2e3c274b..54cd4301 100755 --- a/.travis-build-socs.sh +++ b/.travis-build-socs.sh @@ -2,16 +2,27 @@ set -e +# Some colors, use it like following; +# echo -e "Hello ${YELLOW}yellow${NC}" +GRAY='\033[0;30m' +GREEN='\033[0;32m' +YELLOW='\033[0;33m' +PURPLE='\033[0;35m' +NC='\033[0m' # No Color + +SPACER="echo -e ${GRAY} - ${NC}" + travis_fold start "environment.create" travis_time_start -echo "Setting up basic conda environment" +echo -e "Setting up basic ${YELLOW}conda environment${NC}" echo "-------------------------------------------------------------------" conda env create -f environment.yml source activate litex echo "-------------------------------------------------------------------" travis_time_finish travis_fold end "environment.create" -echo "-" + +$SPACER SOC_FILES=$(find litex/boards/targets -name \*.py | grep -v sim | grep -v "__") @@ -23,17 +34,18 @@ for SOC_FILE in $SOC_FILES; do travis_fold start "$SOC.1" travis_time_start - echo "Building $TARGET ($SOC)" + echo -e "Building ${GREEN}${TARGET}${NC} (${PURPLE}${SOC}${NC})" echo "-------------------------------------------------------------------" python -m $SOC --no-compile-gateware echo "-------------------------------------------------------------------" travis_time_finish travis_fold end "$SOC.1" travis_fold start "$SOC.2" - echo "Output of building $SOC" + echo -e "Output of building ${GREEN}${TARGET}${NC} (${PURPLE}${SOC}${NC})" echo "-------------------------------------------------------------------" find soc_*$TARGET* | sort echo "-------------------------------------------------------------------" travis_fold end "$SOC.2" - echo "-" + + $SPACER done