Invalid command error

I get the following error:

invalid command

Action failed: Configure the build

with this circle.yml:

machine:
  pre:
    - curl -sSL https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip > terraform.zip
    - mkdir terraform ; cd terraform ; unzip ../terraform.zip ; install * /usr/local/bin

test:
  override:
    - true

deployment:
  development:
    branch: develop
    commands:
      - terraform apply

general:
  branches:
    ignore:
      - /feature\/.*/
      - /bugfix\/.*/
      - /hotfix\/.*/
      - /release\/.*/
      - /support\/.*/

What am I doing wrong?

The problem was that true in YAML is a boolean not a string, so I had to change it to "true" (i.e. put double quotes around it).

2 Likes