Added codecov config file
This commit is contained in:
parent
1d29d29415
commit
2ce8d9b488
3 changed files with 28 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<img src="https://www.clicon.org/Clixon_logga_liggande_med-ikon.png" width="400">
|
||||
</div>
|
||||
|
||||
[](https://travis-ci.org/clicon/clixon) [](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [](https://codecov.io/gh/clicon/clixon)
|
||||
[](https://travis-ci.org/clicon/clixon) [](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [](https://codecov.io/gh/clicon/clixon)
|
||||
|
||||
Clixon is a YANG-based configuration manager, with interactive CLI,
|
||||
NETCONF and RESTCONF interfaces, an embedded database and transaction
|
||||
|
|
|
|||
23
codecov.yml
Normal file
23
codecov.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
codecov:
|
||||
require_ci_to_pass: yes
|
||||
|
||||
coverage:
|
||||
precision: 2
|
||||
round: down
|
||||
range: "70...100"
|
||||
|
||||
parsers:
|
||||
gcov:
|
||||
branch_detection:
|
||||
conditional: yes
|
||||
loop: yes
|
||||
method: no
|
||||
macro: no
|
||||
|
||||
comment:
|
||||
layout: "reach,diff,flags,files,footer"
|
||||
behavior: default
|
||||
require_changes: no
|
||||
|
||||
ignore:
|
||||
- "util" # ignore folders and all its contents
|
||||
|
|
@ -390,14 +390,18 @@ function wait_restconf(){
|
|||
# @note assumes port=80 if RCPROTO=http and port=443 if RCPROTO=https
|
||||
# @see wait_restconf
|
||||
function wait_restconf_stopped(){
|
||||
# echo "curl $CURLOPTS $* $RCPROTO://localhost/restconf"
|
||||
hdr=$(curl $CURLOPTS $* $RCPROTO://localhost/restconf 2> /dev/null)
|
||||
# echo "hdr:\"$hdr\""
|
||||
let i=0;
|
||||
while [[ $hdr = *"200 OK"* ]]; do
|
||||
# echo "wait_restconf_stopped $i"
|
||||
if [ $i -ge $DEMLOOP ]; then
|
||||
err1 "restconf timeout $DEMWAIT seconds"
|
||||
fi
|
||||
sleep $DEMSLEEP
|
||||
hdr=$(curl $CURLOPTS $* $RCPROTO://localhost/restconf 2> /dev/null)
|
||||
# echo "hdr:\"$hdr\""
|
||||
let i++;
|
||||
done
|
||||
if [ $valgrindtest -eq 3 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue