title: Only test/build commits on the develop branch - CircleCI
body: <p>I am trying to set up CircleCI for my AngularJS project. I think I've done everything correctly, but there are some problems.</p>
  
  <ol>
  <li>When a commit is pushed on a feature branch (anything except develop or master), I don't want to run test, and definitely not create a build.</li>
  <li>When a PR is created to the develop branch, I want this PR to be tested.</li>
  <li>When that PR is merged, or if other direct commits are made on the develop branch, I want a new build to be created &amp; deployed.</li>
  </ol>
  
  <p>The problem is that first point, at this moment every commit on any branch will trigger a test, which is just not needed at all.</p>
  
  <p>I've tried this in circle.yml but that also stops PR's to the develop branch from being tested it seems:</p>
  
  <pre><code>general:
    branches:
      only:
        - develop
  </code></pre>
  
  <p>So how can I get Circle to behave in the way that I want? Or should I remove that config above and let it test every commit on every branch?</p>