Support glob exclusions


Currently, we want to use the glob function to parallelise our tests across multiple containers, all except the tests in a certain directory, which we run with a different job. The CircleCI glob function does not appear to support the standard !(pattern) exclusion feature, which would be very handy in this situation.

We have worked around this for now, but it’s a bit of a hack.


I’m trying to do something similar. @edkellena Can you share what your work around is?


Sure @scottbartell, it’s hacky but where you have a spec folder with sub-folders A,B,C,D,E,F etc, but you want to exclude D for instance you can do something like:

circleci tests glob "spec/{A,B,C,E,F}/**/*_spec.rb"

to just run and include all the others. Hope that helps.


+3 for this.