Skip to content

Commit

Permalink
Merge pull request #43 from esl/codecov_plugin
Browse files Browse the repository at this point in the history
Codecov plugin
  • Loading branch information
michalwski committed Sep 10, 2018
2 parents 5b51ad9 + ccf5303 commit 9e45f54
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ otp_release:
install:
- make
- make test-compile
- travis_retry pip install --user codecov
script:
- make test
- make dialyzer

after_success:
- make coverage-report
- make coverage-report
- make codecov
- codecov
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ test: test-compile
coverage-report: _build/test/cover/eunit.coverdata
./rebar3 coveralls send

codecov: _build/test/cover/eunit.coverdata
./rebar3 codecov analyze

rebar3:
wget https://github.com/erlang/rebar3/releases/download/3.6.1/rebar3 &&\
chmod u+x rebar3
Expand Down
7 changes: 6 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
[{deps, [{proper, "1.3.0"}]}]
}]}.

{plugins , [coveralls]}.
{plugins , [coveralls,
{rebar3_codecov,
{git, "https://github.com/zofpolkowska/rebar3_codecov.git",
{ref, "3d0af19"}}}
]}.

{cover_enabled , true}.
{cover_export_enabled , true}.
{coveralls_coverdata , "_build/test/cover/eunit.coverdata"}.
Expand Down

0 comments on commit 9e45f54

Please sign in to comment.