Build passing with compilation error TS2554

Hi,

My build is passing even though the log shows a compilation error from my TypeScript code:

[tsl] ERROR in /home/travis/build/[…].spec.ts
TS2554: Expected 5 arguments, but got 4.
Failed to compile.

The build keeps running and ends up Passing.

What am I missing, is there some config to tell Travis to fail on this error, or is it a bug?

Thanks

It’s likely that this error doesn’t propagate to the exit code of the corresponding command/script – so Travis doesn’t get a signal that there is an error.

See this on how to make a build stop/fail: