25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Workaround so coveralls website shows git commit information

References:
https://github.com/markusn/coveralls-erl/pull/36
https://github.com/deadtrickster/prometheus.erl/pull/123
This commit is contained in:
Badlop 2021-06-03 16:48:10 +02:00
parent 9010c35193
commit 2b0d724aef
2 changed files with 11 additions and 2 deletions

View File

@ -171,7 +171,14 @@ jobs:
if: matrix.otp == 24.0 if: matrix.otp == 24.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: rebar3 as test coveralls send run: |
rebar3 as test coveralls send
curl -v -k https://coveralls.io/webhook \
--header "Content-Type: application/json" \
--data '{"repo_name":"$GITHUB_REPOSITORY",
"repo_token":"$GITHUB_TOKEN",
"payload":{"build_num":$GITHUB_RUN_ID,
"status":"done"}}'
binaries: binaries:
name: Binaries name: Binaries

View File

@ -363,7 +363,9 @@ Rules = [
{clean, {asn, clean}} {clean, {asn, clean}}
]}]), []}, ]}]), []},
{[plugins], IsRebar3 and (os:getenv("GITHUB_ACTIONS") == "true"), {[plugins], IsRebar3 and (os:getenv("GITHUB_ACTIONS") == "true"),
AppendList([coveralls]), []}, AppendList([{coveralls, {git,
"https://github.com/RoadRunnr/coveralls-erl.git",
{branch, "feature/git-info"}}} ]), []},
{[overrides], [post_hook_configure], SystemDeps == false, {[overrides], [post_hook_configure], SystemDeps == false,
AppendList2(GenDepsConfigure), [], []}, AppendList2(GenDepsConfigure), [], []},
{[ct_extra_params], [eunit_compile_opts], true, {[ct_extra_params], [eunit_compile_opts], true,