Run CI on every commit


#1

It’s nice to be sure that every commit in a codebase passes CI. This is particularly useful for tracking down the introduction of bugs using git bisect (as an example).

Usually, my workflow looks like this:

  • Write commit A
  • Push
  • Write commit B
  • Push

In which case, CircleCI will run on Commit A & B. Great!

However, sometimes my workflow looks like this:

  • Write commit A
  • Write commit B
  • Push

When this happens, CircleCI will only run on commit B. The most common case for this occurring is rebasing my feature branch on master.

I can’t see an easy way to achieve this with CircleCI right now. Obviously it comes with a cost in terms of builds, but I wonder if it’s something you’d consider supporting as an option?

My solution right now is some git/bash-fu to force-push every commit on my feature branch in order which feels a bit “meh”.


#2

You can use git push-each


#3