Problem with circle.yml

I have a react native project for an iOS app. Without a circle.yml the build ran all the way to test but timed out after 12.5 minutes. It seems that the only way to increase the timeout is to set it in a circle.yml. So I put this circle.yml under the project root:

machine:
  xcode:
    version: 7.3
test:
  pre:
    - npm start
  override:
    - set -o pipefail && xcodebuild -project 'ios/myproj.xcodeproj' -scheme 'myproj' clean build test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee $CIRCLE_ARTIFACTS/xcode_raw.log | xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml
        timeout: 1800
    - npm test
    - npm run lint

But the build would fail at the “Configure the build” stage with this error:
Action failed: Configure the build

What is wrong with this circle.yml? Is there a way I can download the generated circle.yml from the default build (without a custom circle.yml)?

Thanks.

You need to add a colon : at the end of the line before the timeout modifier. (So place it after results.xml).

See: https://circleci.com/docs/configuration/#modifiers

Spot on, Tom! Thanks!

I wish there is a tool that validates circle.yml, instead of giving a cryptic error at runtime.