forked from lpgauth/statsderl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*.beam | ||
doc/README.md | ||
erl_crash.dump | ||
fprofx.* | ||
_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 |
---|---|---|
|
@@ -9,5 +9,5 @@ notifications: | |
otp_release: | ||
- 18.0 | ||
- 17.5 | ||
script: "make test" | ||
script: "make travis" | ||
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,47 +1,53 @@ | ||
CACHEGRIND=qcachegrind | ||
ELVIS=./bin/elvis | ||
REBAR=./bin/rebar3 | ||
REBAR3=./bin/rebar3 | ||
|
||
all: compile | ||
|
||
clean: | ||
@echo "Running rebar3 clean..." | ||
@$(REBAR) clean -a | ||
@$(REBAR3) clean -a | ||
|
||
compile: | ||
@echo "Running rebar3 compile..." | ||
@$(REBAR) as build compile | ||
@$(REBAR3) as compile compile | ||
|
||
coveralls: | ||
@echo "Running rebar3 coveralls send..." | ||
@$(REBAR3) as test coveralls send | ||
|
||
dialyzer: | ||
@echo "Running rebar3 dialyze..." | ||
@$(REBAR) dialyzer | ||
@$(REBAR3) dialyzer | ||
|
||
edoc: | ||
@echo "Running rebar3 edoc..." | ||
@$(REBAR) edoc | ||
@$(REBAR3) as edoc edoc | ||
|
||
elvis: | ||
@echo "Running elvis rock..." | ||
@$(ELVIS) rock | ||
|
||
eunit: | ||
@echo "Running rebar3 eunit..." | ||
@$(REBAR) do eunit -cv, cover -v | ||
@$(REBAR3) do eunit -cv, cover -v | ||
|
||
profile: | ||
@echo "Profiling..." | ||
@$(REBAR) as test compile | ||
@$(REBAR3) as test compile | ||
@erl -noshell \ | ||
-pa _build/test/lib/*/ebin \ | ||
-eval 'statsderl_profile:fprofx()' \ | ||
-eval 'init:stop()' | ||
@_build/test/lib/fprofx/erlgrindx -p fprofx.analysis | ||
@$(CACHEGRIND) fprofx.cgrind | ||
|
||
test: compile dialyzer elvis eunit xref | ||
test: elvis xref eunit dialyzer | ||
|
||
travis: test coveralls | ||
|
||
xref: | ||
@echo "Running rebar3 xref..." | ||
@$(REBAR) xref | ||
@$(REBAR3) xref | ||
|
||
.PHONY: clean compile dialyzer edoc elvis eunit profile xref | ||
.PHONY: clean compile coveralls dialyzer edoc elvis eunit profile 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
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 @@ | ||
case os:getenv("TRAVIS") of | ||
"true" -> | ||
JobId = os:getenv("TRAVIS_JOB_ID"), | ||
lists:keystore(coveralls_service_job_id, 1, CONFIG, {coveralls_service_job_id, JobId}); | ||
_ -> | ||
CONFIG | ||
end. |