Use bold instead of read on white.
# will print out an error and exit with non-zero status code.
RED=`tput setaf 1`
-RED_ON_WHITE=`tput setab 7`
+BOLD=`tput setab 7`
+BOLD=`tput bold`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
@@ -45,7 +46,7 @@ echo "Command \"${BASH_COMMAND_STRING}\" duration: ${DURATION}s (COMMAND_THRESHO
echo ""
if [ "${COMMAND_THRESHOLD}" ] && [ ${COMMAND_THRESHOLD} -lt ${DURATION} ]; then
- >&2 echo "${RED}Command ${RED_ON_WHITE}${BASH_COMMAND_STRING}${RESET}${RED} took longer than ${RED_ON_WHITE}${COMMAND_THRESHOLD}${RESET}${RED} seconds, failing the build."
+ >&2 echo "${RED}Command ${BOLD}${BASH_COMMAND_STRING}${RESET}${RED} took longer than ${BOLD}${COMMAND_THRESHOLD}${RESET}${RED} seconds, failing the build."
>&2 echo "This likely means that a regression has been introduced in the code / tests which significantly slows things down."
>&2 echo "If you think it's an intermediate error, re-run the tests."
>&2 echo "If you think it's a legitimate duration increase, bump the threshold in .travis.yml.${RESET}"
