I would like to setup my CircleCI builds to only run specs in the features directory if the branch being built is master. For any other branch, I want to exclude this directory from my builds.
Here is how I am attempting to accomplish this:
test: override: - case $CIRCLE_BRANCH in master) bundle exec rspec ;; *) bundle exec rspec --exclude-pattern "spec/features/**/*_spec.rb" ;; esac: parallel: true
Unfortunately my specs do not run in parallel, and I’m not even really sure that using a case statement like this is the best way to go about things.