Skip to content

Commit

Permalink
Merge bdf453f into 92b0fd9
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Apr 29, 2020
2 parents 92b0fd9 + bdf453f commit aade1d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{profiles, [
{test,
[ {deps, [
[ {deps, [
{cowboy, "1.1.2"}, recon,
{ proper, {git, "https://github.com/manopapad/proper.git", {tag, "v1.2"}} }
] } ]}
]}.

{plugins, [{coveralls, {git, "https://github.com/markusn/coveralls-erl", {ref, "57a190502cd2606d2b5cc142bd5cec1ec7c497b2"}}}]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/ct.coverdata"}.
{coveralls_service_name, "travis-ci"}.
15 changes: 9 additions & 6 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
%%% -*- mode: erlang -*-

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
case os:getenv("TRAVIS_JOB_ID") of
false -> CONFIG;
JobId ->
[{plugins, [coveralls]},
{coveralls_coverdata, "_build/test/cover/ct.coverdata"},
{coveralls_service_name, "travis-ci"},
{coveralls_service_job_id, JobId}
| CONFIG
]
end.

0 comments on commit aade1d4

Please sign in to comment.