1
0

.codecov.yml 4.2 KB

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