machine:
  xcode:
    version: 7.3
  environment:
    XCODE_PROJECT: build/tangram.xcodeproj
    XCODE_SCHEME: phony # Dummy value, Circle won't run without a scheme.
checkout:
  post:
    - git submodule sync
    - git submodule update --init --recursive
test:
  pre:
    - set -o pipefail &&
      mkdir build &&
      cd build &&
      cmake ..
      -DPLATFORM_TARGET=ios.framework
      -DIOS_PLATFORM=SIMULATOR
      -DCMAKE_TOOLCHAIN_FILE=toolchains/iOS.toolchain.cmake
      -DBUILD_IOS_FRAMEWORK=TRUE
      -G Xcode
  override:
    - set -o pipefail &&
      xcodebuild
      -project build/tangram.xcodeproj
      -target TangramMap
      -configuration Release |
      xcpretty
  post:
    - mv build/lib/Release/TangramMap.framework ${CIRCLE_ARTIFACTS}/

machine:
  xcode:
    version: 8.1
  environment:
    XCODE_PROJECT: build/tangram.xcodeproj
    XCODE_SCHEME: phony # Dummy value, Circle won't run without a scheme.
checkout:
  post:
    - git submodule sync
    - git submodule update --init --recursive
test:
  pre:
    - set -o pipefail &&
      mkdir build &&
      cd build &&
      cmake ..
      -DPLATFORM_TARGET=ios.framework
      -DIOS_PLATFORM=SIMULATOR
      -DCMAKE_TOOLCHAIN_FILE=toolchains/iOS.toolchain.cmake
      -DBUILD_IOS_FRAMEWORK=TRUE
      -G Xcode
  override:
    - set -o pipefail &&
      xcodebuild
      -project build/tangram.xcodeproj
      -target TangramMap
      -configuration Release |
      xcpretty
  post:
    - mv build/lib/Release/TangramMap.framework ${CIRCLE_ARTIFACTS}/

Use Xcode 8.1 on Circle
Use Xcode 8.1 on Circle
