forked from basho/rebar
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Enhance make check (Inspired-by: Stavros Aronis)
- Loading branch information
Tuncer Ayaz
committed
Jan 1, 2012
1 parent
27e5a0a
commit af3eab6
Showing
5 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,7 @@ rebar | |
rt.work | ||
.hgignore | ||
.eunit | ||
dialyzer_warnings | ||
xref_warnings | ||
rebar.cmd | ||
rebar.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
.PHONY: dialyzer_warnings xref_warnings | ||
|
||
all: | ||
./bootstrap | ||
|
||
clean: | ||
@rm -rf rebar ebin/*.beam inttest/rt.work | ||
|
||
debug: | ||
./bootstrap debug | ||
@./bootstrap debug | ||
|
||
check: debug xref dialyzer | ||
|
||
xref: xref_warnings | ||
@diff -U0 xref_reference xref_warnings | ||
|
||
xref_warnings: | ||
-@./rebar xref > xref_warnings | ||
|
||
dialyzer: dialyzer_warnings | ||
@diff -U0 dialyzer_reference dialyzer_warnings | ||
|
||
check: debug | ||
-@./rebar xref | ||
-@dialyzer ebin --verbose -Wunmatched_returns -Werror_handling \ | ||
-Wrace_conditions | ||
dialyzer_warnings: | ||
-@dialyzer -q -n ebin -Wunmatched_returns -Werror_handling \ | ||
-Wrace_conditions > dialyzer_warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
rebar_utils.erl:163: Call to missing or unexported function escript:foldl/3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
==> rebar (xref) | ||
src/rebar_utils.erl:157: Warning escript_foldl/3 calls undefined function escript:foldl/3 |