Set timeout for xcodebuild tests


#1

I’m trying to extend the timeout for my test suite. It currently takes about 30 minutes to run everything. None of the support documents seem to outline the best way to add timeout to my current circle.yml file. If anyone could help me place the timeout modifier to this it would be very helpful. Thanks.

machine:
  timezone:
    America/Chicago
  xcode:
    version: 8.3

dependencies:
  pre:
    - xcrun instruments -w "iPad Air 2" || true

test:
  override:
    - set -o pipefail &&
      xcodebuild
        CODE_SIGNING_REQUIRED=NO
        CODE_SIGNING_IDENTITY=
        PROVISIONING_PROFILE=
        GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
        GCC_GENERATE_TEST_COVERAGE_FILES=YES
        -sdk iphonesimulator
        -destination 'platform=iOS Simulator,name=iPad Air 2'
        -workspace Augusta.xcworkspace
        -scheme "Augusta"
        clean build test |
      tee $CIRCLE_ARTIFACTS/xcode_raw.log |
      xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/results.xml
    - bash <(curl -s https://codecov.io/bash)

#2

Hello Bill,

I have replied to your support ticket, but for anyone who finds your post here:

Command modifiers must be indented properly, see here:
https://circleci.com/docs/1.0/configuration/#modifiers

You can also use this online YAML parser to validate:
http://yaml-online-parser.appspot.com/

Best, Zak


#3

Hey. What about setting timeout for v2.0?


#4