Circleci: run multiple tests for a specific branch

We use CircleCI, and we have two test suites: one is fast and the other is slow. We would like to start the first set when a branch is complete, but only start the second set when commits are made to the branch master. Is it possible? How to set it up?

+4
source share
1 answer

You can read the value $CIRCLE_BRANCHand determine which mode to use in your circle.yml file. Something like ifin bash should be enough.

Here are all available env vars.

+1
source

Source: https://habr.com/ru/post/1619952/


All Articles