osx_image: xcode8.3
language: swift
# cache: cocoapods
# podfile: Example/Podfile

env:
  global:
  - LC_CTYPE=en_US.UTF-8
  - LANG=en_US.UTF-8
  - SDK=iphonesimulator10.3
  matrix:
    - DESTINATION="OS=10.3.1 ,name=iPhone 7 Plus" POD_LINT="YES"
    - DESTINATION="OS=9.0,name=iPhone 6" POD_LINT="NO"
    - DESTINATION="OS=8.1,name=iPhone 4S" POD_LINT="NO"

before_install:
  # - gem install cocoapods # Since Travis is not always on latest version
  - brew install swiftlint
  - pod install --project-directory=Example
  - instruments -s devices
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -list

script:
  - swiftlint
  - pod lib lint
  - set -o pipefail && xcodebuild test -workspace Example/McPicker.xcworkspace -scheme McPicker-Example -sdk "$SDK" -destination $DESTINATION ONLY_ACTIVE_ARCH=NO | xcpretty

    # Run `pod lib lint` if specified
  - if [ $POD_LINT == "YES" ]; then
      pod lib lint;
    fi

osx_image: xcode8.3
language: swift
# cache: cocoapods
# podfile: Example/Podfile

env:
  global:
  - LC_CTYPE=en_US.UTF-8
  - LANG=en_US.UTF-8
  - SDK=iphonesimulator10.3
  matrix:
    - DESTINATION="OS=10.3.1 ,name=iPhone 7 Plus" POD_LINT="YES"
    - DESTINATION="OS=9.0,name=iPhone 6" POD_LINT="NO"
    - DESTINATION="OS=8.1,name=iPhone 4S" POD_LINT="NO"

before_install:
  # - gem install cocoapods # Since Travis is not always on latest version
  - brew install swiftlint
  - pod install --project-directory=Example
  - instruments -s devices
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -list

script:
  - swiftlint
  - pod lib lint
  - set -o pipefail && xcodebuild test -workspace Example/McPicker.xcworkspace -scheme McPicker-Example -sdk "$SDK" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=NO | xcpretty

    # Run `pod lib lint` if specified
  - if [ $POD_LINT == "YES" ]; then
      pod lib lint;
    fi

Add quotes to env var
Add quotes to env var
