-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a separate rebar.config file for running tests
- Loading branch information
Loïc Hoguin
committed
Apr 12, 2012
1 parent
85ed79e
commit 4b27d3e
Showing
3 changed files
with
31 additions
and
18 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 |
---|---|---|
@@ -1,41 +1,53 @@ | ||
# See LICENSE for licensing information. | ||
|
||
PROJECT = cowboy | ||
|
||
DIALYZER = dialyzer | ||
REBAR = rebar | ||
|
||
all: app | ||
|
||
app: deps | ||
@$(REBAR) compile | ||
# Application. | ||
|
||
deps: | ||
@$(REBAR) get-deps | ||
|
||
app: deps | ||
@$(REBAR) compile | ||
|
||
docs: | ||
@$(REBAR) doc skip_deps=true | ||
|
||
clean: | ||
@$(REBAR) clean | ||
rm -f test/*.beam | ||
rm -f erl_crash.dump | ||
|
||
tests: clean app eunit ct | ||
# Tests. | ||
|
||
deps/proper: | ||
@$(REBAR) -C rebar.tests.config get-deps | ||
cd deps/proper && $(REBAR) compile | ||
|
||
inttests: clean app eunit intct | ||
tests: clean deps/proper app eunit ct | ||
|
||
inttests: clean deps/proper app eunit intct | ||
|
||
eunit: | ||
@$(REBAR) eunit skip_deps=true | ||
@$(REBAR) -C rebar.tests.config eunit skip_deps=true | ||
|
||
ct: | ||
@$(REBAR) ct skip_deps=true suites=http,proper,ws | ||
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,proper,ws | ||
|
||
intct: | ||
@$(REBAR) ct skip_deps=true suites=http,proper,ws,autobahn | ||
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,proper,ws,autobahn | ||
|
||
# Dialyzer. | ||
|
||
build-plt: | ||
@$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \ | ||
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \ | ||
--apps kernel stdlib sasl inets crypto public_key ssl | ||
|
||
dialyze: | ||
@$(DIALYZER) --src src --plt .cowboy_dialyzer.plt --no_native \ | ||
@$(DIALYZER) --src src --plt .$(PROJECT).plt --no_native \ | ||
-Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs | ||
|
||
docs: | ||
@$(REBAR) doc skip_deps=true |
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,7 @@ | ||
{cover_enabled, true}. | ||
{deps, [ | ||
{proper, "1.0", | ||
{git, "git://github.com/manopapad/proper.git", {tag, "v1.0"}}} | ||
]}. | ||
{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}. | ||
{erl_opts, []}. |