File tree Expand file tree Collapse file tree 3 files changed +25
-18
lines changed
Expand file tree Collapse file tree 3 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -13,35 +13,38 @@ jobs:
1313 runs-on : ubuntu-20.04
1414 container :
1515 image : erlang:${{ matrix.otp }}
16-
1716 steps :
18-
1917 - uses : actions/checkout@v2
20-
21- - name : Cache rebar3
22- uses : actions/cache@v2
23- with :
24- path : |
25- ~/.cache/rebar3/
26- key : ${{matrix.otp}}-${{hashFiles('rebar.config')}}
27-
2818 - name : Prepare libraries
2919 run : |
3020 apt-get -qq update
3121 apt-get -qq install libgd-dev libjpeg-dev libpng-dev libwebp-dev
32-
33- - run : ./configure --enable-gcov
22+ - run : ./configure
3423 - run : rebar3 compile
3524 - run : rebar3 xref
3625 - run : rebar3 dialyzer
3726 - run : rebar3 eunit -v
3827
28+ cover :
29+ name : Cover
30+ needs : [tests]
31+ runs-on : ubuntu-20.04
32+ steps :
33+ - uses : actions/checkout@v2
34+ - name : Prepare libraries
35+ run : |
36+ sudo apt-get -qq update
37+ sudo apt-get -qq install libgd-dev libjpeg-dev libpng-dev libwebp-dev
38+ - run : ./configure --enable-gcov
39+ - run : rebar3 compile
40+ - run : rebar3 eunit -v
41+ - run : pip install --user cpp-coveralls
42+ - run : cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
3943 - name : Send to Coveralls
40- if : matrix.otp == 24
4144 env :
4245 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4346 run : |
44- COVERALLS=true rebar3 as test coveralls send
47+ ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
4548 curl -v -k https://coveralls.io/webhook \
4649 --header "Content-Type: application/json" \
4750 --data '{"repo_name":"$GITHUB_REPOSITORY",
Original file line number Diff line number Diff line change 1- name : hexpm-release
1+ name : Hex
22
33on :
44 push :
1414
1515 - name : Generate documentation
1616 run : rebar3 edoc
17+ - name : Setup rebar3 hex
18+ run : |
19+ mkdir -p ~/.config/rebar3/
20+ echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
1721
1822 - name : Publish to hex.pm
1923 run : DIAGNOSTIC=1 rebar3 hex publish --repo hexpm --yes ; head rebar3.crashdump
Original file line number Diff line number Diff line change @@ -222,16 +222,16 @@ Rules = [
222222 {[deps ], IsRebar3 ,
223223 Rebar3DepsFilter , []},
224224 {[plugins ], IsRebar3 ,
225- AppendList ([rebar3_hex , pc ]), []},
225+ AppendList ([pc ]), []},
226226 {[provider_hooks ], IsRebar3 ,
227227 AppendList ([{pre , [
228228 {compile , {pc , compile }},
229229 {clean , {pc , clean }}
230230 ]}]), []},
231231 {[plugins ], os :getenv (" COVERALLS" ) == " true" ,
232232 AppendList ([{coveralls , {git ,
233- " https://github.com/RoadRunnr /coveralls-erl.git" ,
234- {branch , " feature/git-info " }}} ]), []},
233+ " https://github.com/processone /coveralls-erl.git" ,
234+ {branch , " addjsonfile " }}} ]), []},
235235 {[deps ], os :getenv (" USE_GLOBAL_DEPS" ) /= false ,
236236 GlobalDepsFilter , []}
237237 ],
You can’t perform that action at this time.
0 commit comments