Mono repo support

circle.yml

#1

Hello,

Our organization uses Mono-repo containing multiple projects. Is there a support for defining multiple circle.yml files to direct each project?

And also what is the recommended way for building only deploying specific project based on on some parameter?


#2

Mono-repo support is limited at this time. CircleCI 2.0 opens the way forwards for doing this better, though it’s still in Beta and we don’t have built-in configuration for it yet. Some ideas that might be useful in this thread: Does CircleCI 2.0 work with monorepos?

You can use conditionals and environment variables to define when deployments should run. There are examples in this forum and the docs. This example might be of interest: https://circleci.com/blog/circleci-hacks-automate-the-decision-to-skip-builds-using-a-git-hook/ Or you could check for the presence of a string in a commit message to decide whether to deploy or not. To deploy only certain branches: https://circleci.com/docs/1.0/configuration/#deployment


#3