LoginSignup
0
0

More than 5 years have passed since last update.

Codecovで特定ブランチのチェックなどを無効にする

Posted at

やりたかったこと

master branchとrelease branchが別になるようなブランチ戦略をとっているときに、feature branchからmasterへのmerge後はcode変更がないのでなんらかの理由でCI checkがfailしないようにしたい

やりかた

サポートに問い合わせたら ! をブランチ名の先頭に付けると当該ブランチでのcheckなどが無効になるとのこと

.codecov.yaml
comment:
  branches:
    - "!master"
coverage:
  status:
    patch:
      default:
        branches:
          - "!master"
    project:
      default:
        branches:
          - "!master"

botやCIでのカバレッジの変化の通知やチェックを無効にしたいときのやり方のドキュメント
* で任意のブランチって書き方もできるらしい (未検証)

https://docs.codecov.io/docs/pull-request-comments
https://docs.codecov.io/docs/commit-status

Codecovサポートには、CircleCIのブランチ指定方法と同じに書けると良いのではと伝えておいた
https://circleci.com/docs/2.0/configuration-reference/#branches

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0