env:
  global:
    - LC_CTYPE=en_US.UTF-8

matrix:
  include:
    - &podspec
      os: osx
      language: objective-c
      osx_image: xcode10.2
      script:
        - pod lib lint --allow-warnings
    - &xcode
      os: osx
      language: objective-c
      osx_image: xcode10.2
      script:
        - set -o pipefail
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - &swiftpm
      os: osx
      language: generic
      osx_image: xcode10.2
      script:
        - swift build
        - swift test

notifications:
  email: false

env:
  global:
    - LC_CTYPE=en_US.UTF-8

matrix:
  include:
    - &podspec
      name: CocoaPods Lint
      os: osx
      language: objective-c
      osx_image: xcode10.2
      script:
        - pod lib lint --allow-warnings
    - &xcode
      name: Xcode 10.2 / Swift 5.0
      os: osx
      language: objective-c
      osx_image: xcode10.2
      script:
        - set -o pipefail
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - &swiftpm
      name: SwiftPM / Darwin / Swift 5.0
      os: osx
      language: generic
      osx_image: xcode10.2
      script:
        - swift build
        - swift test

notifications:
  email: false

Add name to build matrix
[CI] Add name to build matrix
