Only build on pull requests

Our end-to-end tests are expensive to run over time, so we only want them to run on pull requests and some specific branches. We use the whitelisting-option for the branches, but to to only make them run on pull requests is tricky.

There’s already the CI_PULL_REQUEST env. variable. How about enabling white/blacklisting pull requests in circle.yml?


Bump! This is very important for us as well. Right now our only option is to use the variables and it is not a real indication of pass/fail testing as it creates a lot of unnecessary noise.

For your information, only build on pull request has since been added to circle ci.

It can be set in project settings -> build settings -> Advanced settings -> Only build pull requests