Open nelsonic opened 6 years ago
We should actually be running compile --warnings-as-errors
.
The command does not exit with a non 0 exit code if third party libraries produce warnings.
I checked out to the previous state of that travis build:
git checkout 7cee84a74047453dc27dc063b177992bd7784467
when running:
mix compile --warnings-as-errors
I did get echo $? # returning 1 status code
But if you read our errors and fix them, then
mix compile --warnings-as-errors && echo $? # returns 0
At present the Traivs-CI build is failing because we are treating compilation warnings as "errors": https://travis-ci.org/dwyl/hits-elixir/builds/341144484#L771
Todo
lib/plug/adapters/cowboy.ex:220
but anything local to our project)