Parallelism and bash case... anybody understand this error message?


#1

I have enabled Parallelism to 2 containers.

My circleci.yml file has:

test:
  override:
    - case $CIRCLE_NODE_INDEX in 0) rake ci:feature_tests ;; 1) rake ci:non_feature_tests ;; esac:
      parallel: true

I get the following error message:
Action failed: Configure the build modifiers to 'case $CIRCLE_NODE_INDEX in 0) rake ci:feature_tests ;; 1) rake ci:non_feature_tests ;; esac' must be a map

It is almost like, despite there being 2 containers, it tries for 3 or only 1 and it is not “mapped” to the correct node.
I have searched for this on google as well as this forum and am not seeing anything similar.
I have tested and both rake commands work in my local environment.
I have validated the yml format: all spaces before, indentation seems correct and no trailing spaces.
Any thoughts or suggestions would be much appreciated.


#2

Figured it out. The last line (parallel: true) needs to be indented by 4 spaces.

test:
  override:
    - case $CIRCLE_NODE_INDEX in 0) rake ci:feature_tests ;; 1) rake ci:non_feature_tests ;; esac:
        parallel: true

#3