branches:
  only:
    - master
language: objective-c
os: osx
osx_image: xcode7.3
env:
  matrix:
    - TEST_TYPE=iOS
install:
- |
  if [ "$TEST_TYPE" = "iOS" ]; then
    gem install xcpretty -N --no-ri --no-rdoc
    gem install cocoapods --quiet --no-ri --no-rdoc
    pod install
  fi
script:
- |
  if [ "$TEST_TYPE" = "iOS" ]; then
    set -o pipefail
    xcodebuild -workspace pop.xcworkspace -scheme pop-ios-framework -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
  elif [ "$TEST_TYPE" = CocoaPods ]; then
    pod lib lint pop.podspec
    pod lib lint --use-libraries pop.podspec
  fi
after_success:
- |
  if [ "$TEST_TYPE" = "iOS" ]; then
    bash <(curl -s https://codecov.io/bash)
  fi

branches:
  only:
    - master
language: objective-c
os: osx
osx_image: xcode7.3
env:
  matrix:
    - TEST_TYPE=iOS
    - TEST_TYPE=CocoaPods
install:
- |
  if [ "$TEST_TYPE" = "iOS" ]; then
    gem install xcpretty -N --no-ri --no-rdoc
    gem install cocoapods --quiet --no-ri --no-rdoc
    pod install
  fi
script:
- |
  if [ "$TEST_TYPE" = "iOS" ]; then
    set -o pipefail
    xcodebuild -workspace pop.xcworkspace -scheme pop-ios-framework -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
  elif [ "$TEST_TYPE" = CocoaPods ]; then
    pod lib lint pop.podspec
    pod lib lint --use-libraries pop.podspec
  fi

Add CocoaPods linting to Travis-CI.
Add CocoaPods linting to Travis-CI.
