Different logic for different branches


#1

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?


#2

actually, may have just found it

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


#3

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


#4