travis: enable -Werror in the script instead of using the matrix (cherry picked from commit 61eaaadf7f23a88a5bac67d44099d9d3fabf51fe)