.codecov.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. codecov:
  2. ci:
  3. - drone.saltstack.com
  4. - jenkinsci.saltstack.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. status:
  23. project: # measuring the overall project coverage
  24. default:
  25. informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  26. # resulting status will pass no matter what the coverage is or what other settings
  27. # are specified. Informational mode is great to use if you want to expose codecov
  28. # information to other developers in your pull request without necessarily gating
  29. # PRs on that information.
  30. salt: # declare a new status context "salt"
  31. paths: "!tests/" # remove all files in "tests/"
  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. if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  35. # options: success, error, failure
  36. if_not_found: success # if parent is not found report status as success, error, or failure
  37. if_ci_failed: error # if ci fails report status as success, error, or failure
  38. tests: # declare a new status context "tests"
  39. #target: 100% # we always want 100% coverage here
  40. target: auto # auto while we get this going
  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. paths: "!salt/" # only include coverage in "tests/" folder
  43. if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  44. # options: success, error, failure
  45. if_not_found: success # if parent is not found report status as success, error, or failure
  46. if_ci_failed: error # if ci fails report status as success, error, or failure
  47. patch: # pull requests only: this commit status will measure the
  48. # entire pull requests Coverage Diff. Checking if the lines
  49. # adjusted are covered at least X%.
  50. default:
  51. informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  52. # resulting status will pass no matter what the coverage is or what other settings
  53. # are specified. Informational mode is great to use if you want to expose codecov
  54. # information to other developers in your pull request without necessarily gating
  55. # PRs on that information.
  56. target: 100% # Newly added lines must have 100% coverage
  57. if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  58. # options: success, error, failure
  59. if_not_found: success
  60. if_ci_failed: error
  61. changes: # if there are any unexpected changes in coverage
  62. default:
  63. informational: true # Use Codecov in informational mode. Default is false. If true is specified the
  64. # resulting status will pass no matter what the coverage is or what other settings
  65. # are specified. Informational mode is great to use if you want to expose codecov
  66. # information to other developers in your pull request without necessarily gating
  67. # PRs on that information.
  68. if_no_uploads: error
  69. if_not_found: success
  70. if_ci_failed: error
  71. flags:
  72. salt:
  73. paths:
  74. - salt/
  75. carryforward: true # https://docs.codecov.io/docs/carryforward-flags
  76. tests:
  77. paths:
  78. - tests/
  79. carryforward: true
  80. #comment:
  81. # layout: "reach, diff, flags, files"
  82. # after_n_builds: 46 # Only comment on PRs after N builds
  83. # # This value is the output of:
  84. # # sh -c 'echo "$(ls .ci/ | grep kitchen | wc -l)"'
  85. #
  86. # behavior: new # Comment posting behaviour
  87. # # default: update, if exists. Otherwise post new.
  88. # # once: update, if exists. Otherwise post new. Skip if deleted.
  89. # # new: delete old and post new.
  90. # # spammy: post new (do not delete old comments).
  91. #
  92. # Disable Comments
  93. comment: off