Skip to content

Commit

Permalink
Merge 92f6246 into cd80aea
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagabond committed Feb 28, 2018
2 parents cd80aea + 92f6246 commit 7c770fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{plugins, [coveralls, rebar3_hex]}.
{erl_opts, [debug_info, warnings_as_errors]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/eunit.coverdata"}.
{coveralls_service_name, "travis-ci"}.

{pre_hooks,
[{"(linux|darwin|solaris)", compile, "make -C c_src"},
Expand Down
8 changes: 6 additions & 2 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
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});
Plugins = proplists:get_value(plugins, CONFIG, []),
[{coveralls_coverdata, "_build/test/cover/eunit.coverdata"},
{coveralls_service_name, "travis-ci"},
{coveralls_service_job_id, JobId} |
lists:keystore(plugins, 1, CONFIG, {plugins, [coveralls|Plugins]})];
_ ->
CONFIG
end.
end.

0 comments on commit 7c770fd

Please sign in to comment.