# reference: http://www.objc.io/issue-6/travis-ci.html

# whitelist
branches:
  only:
    - master
language: objective-c
osx_image: xcode7.2
env:
    matrix:
    - OS='latest' name='iPhone 6'
    
before_install:
    - gem install xcpretty
before_script:
    - pod --version
    - pod repo update
    - pod lib lint --allow-warnings
script:
    - xcodebuild clean test -destination "platform=iOS Simulator,OS=$OS,name=$name" -workspace Example/PINRemoteImage.xcworkspace -scheme PINRemoteImage ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -t; test ${PIPESTATUS[0]} -eq 0
