1
0

.codecov.yml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. codecov:
  2. ci:
  3. - jenkinsci.saltstack.com
  4. - github.com
  5. max_report_age: 24 # The age you want coverage reports to expire at, or if you
  6. # want to disable this check. Expired reports will not be processed by codecov.
  7. require_ci_to_pass: yes # Less spammy. Only notify on passing builds.
  8. # notify:
  9. # after_n_builds: 25 # Only notify after N builds
  10. # # This value is the output of:
  11. # # sh -c 'echo "$(ls .ci/ | grep kitchen | wc -l)"'
  12. # wait_for_ci: yes # Should Codecov wait for all CI statuses to complete before sending ours.
  13. # # Note: Codecov considers all non-codecov statues to be CI statuses
  14. ignore:
  15. - ^*.py$ # python files at the repo root, ie, setup.py
  16. - doc/.* # ignore any code under doc/
  17. - salt/ext/.* # ignore any code under salt/ext
  18. coverage:
  19. round: up
  20. range: 70..100
  21. precision: 2
  22. notify: {}
  23. status: false
  24. # status:
  25. # project: # measuring the overall project coverage
  26. # default:
  27. # informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  28. # # resulting status will pass no matter what the coverage is or what other settings
  29. # # are specified. Informational mode is great to use if you want to expose codecov
  30. # # information to other developers in your pull request without necessarily gating
  31. # # PRs on that information.
  32. # target: auto # will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
  33. # base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
  34. # flags:
  35. # - salt
  36. # - tests
  37. # salt: # declare a new status context "salt"
  38. # informational: true
  39. # paths: "!tests/" # remove all files in "tests/"
  40. # target: auto # will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
  41. # base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
  42. # if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  43. # # options: success, error, failure
  44. # if_not_found: success # if parent is not found report status as success, error, or failure
  45. # if_ci_failed: error # if ci fails report status as success, error, or failure
  46. # flags:
  47. # - salt
  48. # tests: # declare a new status context "tests"
  49. # informational: true
  50. # #target: 100% # we always want 100% coverage here
  51. # target: auto # auto while we get this going
  52. # base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
  53. # paths: "!salt/" # only include coverage in "tests/" folder
  54. # if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  55. # # options: success, error, failure
  56. # if_not_found: success # if parent is not found report status as success, error, or failure
  57. # if_ci_failed: error # if ci fails report status as success, error, or failure
  58. # flags:
  59. # - tests
  60. # patch: # pull requests only: this commit status will measure the
  61. # # entire pull requests Coverage Diff. Checking if the lines
  62. # # adjusted are covered at least X%.
  63. # default:
  64. # informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  65. # # resulting status will pass no matter what the coverage is or what other settings
  66. # # are specified. Informational mode is great to use if you want to expose codecov
  67. # # information to other developers in your pull request without necessarily gating
  68. # # PRs on that information.
  69. # target: 100% # Newly added lines must have 100% coverage
  70. # if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  71. # # options: success, error, failure
  72. # if_not_found: success
  73. # if_ci_failed: error
  74. # flags:
  75. # - salt
  76. # - tests
  77. # changes: # if there are any unexpected changes in coverage
  78. # default:
  79. # informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  80. # # resulting status will pass no matter what the coverage is or what other settings
  81. # # are specified. Informational mode is great to use if you want to expose codecov
  82. # # information to other developers in your pull request without necessarily gating
  83. # # PRs on that information.
  84. # if_no_uploads: error
  85. # if_not_found: success
  86. # if_ci_failed: error
  87. # flags:
  88. # - salt
  89. # - tests
  90. flags:
  91. salt:
  92. paths:
  93. - salt/
  94. carryforward: true # https://docs.codecov.io/docs/carryforward-flags
  95. tests:
  96. paths:
  97. - tests/
  98. carryforward: true
  99. #comment:
  100. # layout: "reach, diff, flags, files"
  101. # after_n_builds: 46 # Only comment on PRs after N builds
  102. # # This value is the output of:
  103. # # sh -c 'echo "$(ls .ci/ | grep kitchen | wc -l)"'
  104. #
  105. # behavior: new # Comment posting behaviour
  106. # # default: update, if exists. Otherwise post new.
  107. # # once: update, if exists. Otherwise post new. Skip if deleted.
  108. # # new: delete old and post new.
  109. # # spammy: post new (do not delete old comments).
  110. #
  111. # Disable Comments
  112. comment: off