1
0

.codecov.yml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. codecov:
  2. ci:
  3. - drone.saltstack.com
  4. - jenkinsci.saltstack.com
  5. branch: master
  6. notify:
  7. require_ci_to_pass: yes # Less spammy. Only notify on passing builds.
  8. ignore:
  9. - ^*.py$ # python files at the repo root, ie, setup.py
  10. - doc/.* # ignore any code under doc/
  11. coverage:
  12. round: up
  13. range: 70..100
  14. precision: 2
  15. status:
  16. project: # measuring the overall project coverage
  17. default: false # disable the default status that measures entire project
  18. salt: # declare a new status context "salt"
  19. enabled: yes # must be yes|true to enable this status
  20. paths: "!tests/" # remove all files in "tests/"
  21. target: auto # will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.
  22. base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
  23. if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  24. # options: success, error, failure
  25. if_not_found: success # if parent is not found report status as success, error, or failure
  26. if_ci_failed: error # if ci fails report status as success, error, or failure
  27. tests: # declare a new status context "tests"
  28. enabled: yes # must be yes|true to enable this status
  29. #target: 100% # we always want 100% coverage here
  30. target: auto # auto while we get this going
  31. base: auto # will use the pull request base if the commit is on a pull request. If not, the parent commit will be used.
  32. paths: "!salt/" # only include coverage in "tests/" folder
  33. if_no_uploads: error # will post commit status of "error" if no coverage reports were uploaded
  34. # options: success, error, failure
  35. if_not_found: success # if parent is not found report status as success, error, or failure
  36. if_ci_failed: error # if ci fails report status as success, error, or failure
  37. patch: # pull requests only: this commit status will measure the
  38. # entire pull requests Coverage Diff. Checking if the lines
  39. # adjusted are covered at least X%.
  40. default:
  41. enabled: yes # must be yes|true to enable this status
  42. target: 100% # Newly added lines must have 100% coverage
  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
  46. if_ci_failed: error
  47. changes: # if there are any unexpected changes in coverage
  48. default:
  49. enabled: yes # must be yes|true to enable this status
  50. if_no_uploads: error
  51. if_not_found: success
  52. if_ci_failed: error
  53. flags:
  54. salt:
  55. paths:
  56. - salt/
  57. tests:
  58. paths:
  59. - tests/
  60. comment:
  61. layout: "reach, diff, flags, files"
  62. # after_n_builds: 46 # Only comment on PRs after N builds
  63. # # This value is the output of:
  64. # # sh -c 'echo "$(ls .ci/ | grep kitchen | wc -l)"'
  65. behavior: new # Comment posting behaviour
  66. # default: update, if exists. Otherwise post new.
  67. # once: update, if exists. Otherwise post new. Skip if deleted.
  68. # new: delete old and post new.
  69. # spammy: post new (do not delete old comments).