-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from lpgauth/rebar3
Rebar3
- Loading branch information
Showing
9 changed files
with
39 additions
and
33 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,9 +1,7 @@ | ||
*.beam | ||
*.o | ||
*.plt | ||
.eunit | ||
.rebar | ||
deps/ | ||
doc/README.md | ||
ebin/ | ||
erl_crash.dump | ||
_build |
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,11 +1,14 @@ | ||
cache: | ||
directories: | ||
- $HOME/.cache/rebar3 | ||
language: erlang | ||
notifications: | ||
email: false | ||
otp_release: | ||
- 18.0 | ||
- 17.5 | ||
- R16B03-1 | ||
script: "make build-plt dialyze eunit xref" | ||
services: | ||
- memcached | ||
script: "make test" | ||
sudo: false |
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,39 +1,33 @@ | ||
PROJECT=anchor | ||
REBAR=./rebar | ||
REBAR=./rebar3 | ||
|
||
all: deps compile doc | ||
|
||
build-plt: all | ||
@dialyzer --build_plt --output_plt ~/.$(PROJECT).plt \ | ||
--apps erts kernel stdlib crypto public_key ssl | ||
all: compile | ||
|
||
clean: | ||
@echo "Running rebar clean..." | ||
@echo "Running rebar3 clean..." | ||
@$(REBAR) clean | ||
@rm -rf deps ebin | ||
|
||
compile: | ||
@echo "Running rebar compile..." | ||
@echo "Running rebar3 compile..." | ||
@$(REBAR) compile | ||
|
||
deps: | ||
@echo "Running rebar update-deps..." | ||
@$(REBAR) update-deps | ||
|
||
dialyze: | ||
@dialyzer ebin/*.beam --plt ~/.$(PROJECT).plt -I include | ||
dialyzer: | ||
@echo "Running rebar3 dialyze..." | ||
@$(REBAR) dialyzer | ||
|
||
doc: | ||
@echo "Running rebar doc..." | ||
@$(REBAR) skip_deps=true doc | ||
edoc: | ||
@echo "Running rebar3 edoc..." | ||
@$(REBAR) as doc edoc | ||
|
||
eunit: | ||
@echo "Running rebar eunit..." | ||
@$(REBAR) skip_deps=true eunit | ||
@echo "Running rebar3 eunit..." | ||
@rm -rf _build/test/lib | ||
@$(REBAR) do eunit, cover --verbose | ||
|
||
test: all eunit | ||
test: dialyzer eunit xref | ||
|
||
xref: | ||
@$(REBAR) skip_deps=true xref | ||
@echo "Running rebar3 xref..." | ||
@$(REBAR) xref | ||
|
||
.PHONY: deps doc test xref |
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,4 +1,5 @@ | ||
%% encoding: UTF-8 | ||
{application,anchor}. | ||
{packages,[]}. | ||
{modules,[anchor,anchor_app,anchor_backlog,anchor_protocol,anchor_queue, | ||
anchor_server,anchor_sup,anchor_utils]}. |
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 @@ | ||
[]. |
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