-
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.
Browse files
Browse the repository at this point in the history
* #5 turn code coverage controls on * #5 enable coverage reporting service * try coveralls * #5 use proper coverage report * #5 enhance coveralls usage and speed-up build * #5 update ravis script * #5 run build with cached plt * #5 update build status badge * #5 run travis build insingle command * #5 little rearrangement for makefile
- Loading branch information
Showing
5 changed files
with
40 additions
and
14 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,8 +1,11 @@ | ||
cache: | ||
directories: | ||
- ./_build/plt | ||
|
||
language: erlang | ||
|
||
otp_release: | ||
- 21.0 | ||
|
||
script: | ||
- make code-checks | ||
- make test | ||
- make travis |
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,16 +1,24 @@ | ||
REBAR = ./rebar3 | ||
|
||
all: clean code-checks test | ||
all: clean code-checks test cover | ||
|
||
travis: all coveralls | ||
|
||
clean: | ||
$(REBAR) clean | ||
|
||
compile: | ||
$(REBAR) compile | ||
|
||
test: compile | ||
$(REBAR) do ct -v | ||
|
||
code-checks: compile | ||
$(REBAR) dialyzer | ||
$(REBAR) as lint lint | ||
|
||
test: compile | ||
$(REBAR) as test do ct -v | ||
|
||
cover: | ||
$(REBAR) as test cover --min_coverage=100 -v | ||
|
||
coveralls: | ||
$(REBAR) as test coveralls send |
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
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. |