language: objective-c
osx_image: xcode8
env:
    - IOS_VER="10.0" FL_ARGS="verify" FASTLANE_XCODE_LIST_TIMEOUT=120
    # - IOS_VER="9.3" FL_ARGS="verify" FASTLANE_XCODE_LIST_TIMEOUT=120
    #  - IOS_VER="9.2" FL_ARGS="analyze"
    #  - IOS_VER="9.2" FL_ARGS="verify scheme:WikipediaRTL"
    #  - IOS_VER="8.4" FL_ARGS="verify sim_os:${IOS_VER}"
    #  - IOS_VER="8.4" FL_ARGS="verify sim_os:${IOS_VER} scheme:WikipediaRTL"

before_install:
  - bundle install
  
install:
  - make travis-get-deps

before_script:
  - SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6 (${IOS_VER}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")

script:
  - echo $SIMULATOR_ID
  - open -b com.apple.iphonesimulator --args -CurrentDeviceUDID $SIMULATOR_ID
  - set -o pipefail
  - bundle exec fastlane $FL_ARGS

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

branches:
  only:
    - master
    - develop

language: objective-c
osx_image: xcode8
env:
    - IOS_VER="10.0" FL_ARGS="verify" FASTLANE_XCODE_LIST_TIMEOUT=120
    # - IOS_VER="9.3" FL_ARGS="verify" FASTLANE_XCODE_LIST_TIMEOUT=120
    #  - IOS_VER="9.2" FL_ARGS="analyze"
    #  - IOS_VER="9.2" FL_ARGS="verify scheme:WikipediaRTL"
    #  - IOS_VER="8.4" FL_ARGS="verify sim_os:${IOS_VER}"
    #  - IOS_VER="8.4" FL_ARGS="verify sim_os:${IOS_VER} scheme:WikipediaRTL"

install:
  - bundle install
  - make travis-get-deps

before_script:
  - SIMULATOR_ID=$(xcrun instruments -s | grep -o "iPhone 6 (${IOS_VER}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")

script:
  - echo $SIMULATOR_ID
  - open -b com.apple.iphonesimulator --args -CurrentDeviceUDID $SIMULATOR_ID
  - set -o pipefail
  - bundle exec fastlane $FL_ARGS

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

branches:
  only:
    - master
    - develop

Revert "Revert "Revert "Revert "Revert "Revert "Revert "add before_install"""""""
Revert "Revert "Revert "Revert "Revert "Revert "Revert "add before_install"""""""

This reverts commit 2f0022fbfb9de809f36f8c5b62998ab3ecc9fe66.
