Scan the output of the previous command to determine if any warnings were generated. If so, fail the CI run. Make sure the build output still prints to the console, so the user can see what is failing.
This can be done by splitting the output using the tee command in Linux.
Ex: make html | tee results.txt will pipe the results to the screen, AND save them to the file 'results.txt'.