ansi-to-html doesn't return any colours if there are no markers in the text. And there are no markers in the text, because the build command is not run in a terminal.