Different logic for different branches

I am trying to accomplish a test/build scenario that will do the following:

  • If code is checked into the “develop” branch, I’d like Circle to pull that code, test it, and run a certain script (build-dev.sh)
  • If code is checked into the “master” branch, I’d like Circle to pull that code, test it, and run a different script (build-prod.sh)

How can I set this up?

actually, may have just found it

https://circleci.com/docs/configuration/#deployment

1 Like

theres definitely patterns ive found to be cleaner… shoot me a message if its something you might be interested in talking more about