language: objective-c

notifications:
  slack: devlucky:0AP12qjjfc2Zxc0s9yo1cQQm

env:
  global:
    - FASTLANE_LANE=ci_commit

before_install:
  - gem update fastlane
  - gem update scan
  - gem install danger --no-ri --no-doc
  - gem install danger-swiftlint --no-ri --no-doc

before_script:
  - danger

matrix:
  include:
    - osx_image: xcode8
      env: FASTLANE_ENV=tvos
    - osx_image: xcode8
      env: FASTLANE_ENV=osx
    - osx_image: xcode8
      env: FASTLANE_ENV=ios93
    - osx_image: xcode8
      env: FASTLANE_ENV=ios10 KKP_CODECOV=true
      after_success:
        - bash <(curl -s https://codecov.io/bash) -J 'Kakapo'

script:
  - set -o pipefail
  - fastlane $FASTLANE_LANE configuration:Debug --env $FASTLANE_ENV
  - pod lib lint --quick

podfile: Podfile

after_failure:
  - cat -n ~/Library/Logs/scan/*
  - cat -n $TMPDIR/com.apple.dt.XCTest-status/Session*.log
  - cat -n ~/Library/Logs/DiagnosticReports/xctest*.crash


language: objective-c

notifications:
  slack: devlucky:0AP12qjjfc2Zxc0s9yo1cQQm

env:
  global:
    - FASTLANE_LANE=ci_commit

before_install:
  - gem update fastlane
  - gem update scan
  - gem install danger --no-ri --no-doc
  - gem install danger-swiftlint --no-ri --no-doc

matrix:
  include:
    - osx_image: xcode8
      env: FASTLANE_ENV=tvos
    - osx_image: xcode8
      env: FASTLANE_ENV=osx
    - osx_image: xcode8
      env: FASTLANE_ENV=ios93
    - osx_image: xcode8
      env: FASTLANE_ENV=ios10 KKP_CODECOV=true
      before_script:
        - danger
        - pod lib lint --quick
      after_success:
        - bash <(curl -s https://codecov.io/bash) -J 'Kakapo'

script:
  - set -o pipefail
  - fastlane $FASTLANE_LANE configuration:Debug --env $FASTLANE_ENV

podfile: Podfile

after_failure:
  - cat -n ~/Library/Logs/scan/*
  - cat -n $TMPDIR/com.apple.dt.XCTest-status/Session*.log
  - cat -n ~/Library/Logs/DiagnosticReports/xctest*.crash


Reduce CI build time, run danger and pod lint only in one job of the matrix
Reduce CI build time, run danger and pod lint only in one job of the matrix
