Skip to content

How to run Circle tests on a contributor PR

Erin Bond edited this page Nov 13, 2018 · 1 revision

1) Set up a remote for the contributor and check that it was created correctly.

       git remote add <contributor> git@github.com:<contributor>/code-dot-org.git

       git remote -v should output:

       <contributor> git@github.com:<contributor>/code-dot-org.git (fetch)

       <contributor> git@github.com:<contributor>/code-dot-org.git (push)

2) Make and push a local branch reflecting the contributor's branch, "feature-name".

       git fetch <contributor>

       git branch <contributor>_feature-name <contributor>/feature-name

       git push -u origin <contributor>_feature-name

3) Go to the CircleCI dashboard for the new branch https://circleci.com/gh/code-dot-org/code-dot-org/tree/_feature-name

4) You should see a "Not Run" build on that branch. Open that build and click the "Rebuild" button to start a new build against the latest commit on that branch.

5) Build status shows up on the contributor's PR because Circle status checks are per-commit, not per-branch.

Clone this wiki locally