osx_image: xcode8.3
language: objective-c
sudo: required
env:
  global:
    - WORKSPACE="Umbrella.xcworkspace"
    - SCHEME="Umbrella"
    - IOS_SDK="iphonesimulator10.3"
    - MACOS_SDK="macosx10.12"
    - TVOS_SDK="appletvsimulator10.2"
    - FRAMEWORK="Umbrella"
  matrix:
    - SDK="$IOS_SDK"      DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.3.1"

install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
  - swift --version

before_script:
  - set -o pipefail
  - pod repo update
  - make project

script:
  - xcodebuild clean build test
    -workspace "$WORKSPACE"
    -scheme "$SCHEME"
    -sdk "$SDK"
    -destination "$DESTINATION"
    -configuration Debug
    -enableCodeCoverage YES
    CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
  - pod lib lint --allow-warnings

after_success:
  - bash <(curl -s https://codecov.io/bash) -J 'Umbrella'

osx_image: xcode8.3
language: objective-c
sudo: required
env:
  global:
    - WORKSPACE="Umbrella.xcworkspace"
    - SCHEME="Umbrella"
    - IOS_SDK="iphonesimulator10.3"
    - MACOS_SDK="macosx10.12"
    - TVOS_SDK="appletvsimulator10.2"
    - FRAMEWORK="Umbrella"
  matrix:
    - SDK="$IOS_SDK"      DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.3.1"

install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
  - swift --version

before_script:
  - set -o pipefail
  - pod repo update
  - make project

script:
  - xcodebuild clean build test
    -workspace "$WORKSPACE"
    -scheme "$SCHEME"
    -sdk "$SDK"
    -destination "$DESTINATION"
    -configuration Debug
    -enableCodeCoverage YES
    CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
  - pod lib lint --allow-warnings

after_success:
  - bash <(curl -s https://codecov.io/bash) -J 'Umbrella' -X xcodeplist

Use codecov with '-X xcodeplist' option
Use codecov with '-X xcodeplist' option
