Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 949 Bytes

adding-new-ci.md

File metadata and controls

16 lines (13 loc) · 949 Bytes

Adding new CI

This is a mini-guide on adding new CI provider to JavaScript client.

  1. Create new file in packages/client/src/ci-providers. You can copy Circle.ts and use it as scaffolding.

  2. If your CI creates explicit CI run on PR creation then set supportsSpeculativeBranchSelection to false. Otherwise return true. For example: CircleCI always runs your code on push. That's why we sometimes need to "guess" base branch (only before PR is really created by the user). Read more

  3. Implement rest of the class

  4. Don't forget to add tests. Currently we test new CI providers by adding raw environment dump (you can use printenv) and asserting correct data. Example