I am trying to get jenkins to run dialyzer on erlang code but I am having a problem. As we are introducing this into an existing project there are a number of existing errors that we don't want to flag, which we have in the file dialyzer-ignore-warnings
I have this in my makefile, but what I really want it to do is to return 0 if the grep returns an empty document and a value if there are new errors. But my script-fu is just not up to it
(DEPS_PLT): compile
@echo Building local plt at $(DEPS_PLT)
@echo
@(echo "Using Dialyzer in `which dialyzer`"; dialyzer --output_plt $(DEPS_PLT) --build_plt --apps $(DEPS))
dialyzer: compile $(DEPS_PLT)
@(echo "Using Dialyzer in `which dialyzer`"; dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)|\
fgrep -v -f ./dialyzer-ignore-warnings