<commit_before># Reference: https://github.com/pinterest/PINRemoteImage/blob/master/.travis.yml
#            https://github.com/Alamofire/Alamofire/blob/master/.travis.yml
language: swift
osx_image: xcode10
env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8

    - WORKSPACE=GoogleMaps.xcworkspace

    - DIRECTIONS_IOS_FRAMEWORK_SCHEME="GoogleMapsDirections iOS"
    - DIRECTIONS_MACOS_FRAMEWORK_SCHEME="GoogleMapsDirections macOS"
    - DIRECTIONS_TVOS_FRAMEWORK_SCHEME="GoogleMapsDirections tvOS"
    - DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME="GoogleMapsDirections watchOS"

    - PLACES_IOS_FRAMEWORK_SCHEME="GooglePlaces iOS"
    - PLACES_MACOS_FRAMEWORK_SCHEME="GooglePlaces macOS"
    - PLACES_TVOS_FRAMEWORK_SCHEME="GooglePlaces tvOS"
    - PLACES_WATCHOS_FRAMEWORK_SCHEME="GooglePlaces watchOS"

    - EXAMPLE_SCHEME="iOS Example"

  matrix:
    # GoogleMapsDirections
    ## iOS
    - DESTINATION="OS=12.0,name=iPhone XS Max"                 SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=iPhone SE"                     SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    - DESTINATION="OS=10.3.1,name=iPhone 7"                    SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    - DESTINATION="OS=9.3,name=iPhone 6s Plus"                 SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
         
    ## macOS         
    - DESTINATION="arch=x86_64"                                SCHEME="$DIRECTIONS_MACOS_FRAMEWORK_SCHEME"      RUN_TESTS="YES"
         
    ## tvOS         
    - DESTINATION="OS=12.0,name=Apple TV 4K"                   SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=Apple TV 4K"                   SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=10.2,name=Apple TV 1080p"                SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=9.2,name=Apple TV 1080p"                 SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    
    ## watchOS
    - DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=4.2,name=Apple Watch Series 3 - 42mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=3.2,name=Apple Watch Series 2 - 42mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=2.2,name=Apple Watch - 42mm"             SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO" 

    # GooglePlaces
    ## iOS
    - DESTINATION="OS=12.0,name=iPhone XS Max"                 SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=iPhone 8 Plus"                 SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    - DESTINATION="OS=10.3.1,name=iPhone 7"                    SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    - DESTINATION="OS=9.3,name=iPhone 6s Plus"                 SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
             
    ## macOS             
    - DESTINATION="arch=x86_64"                                SCHEME="$PLACES_MACOS_FRAMEWORK_SCHEME"          RUN_TESTS="YES"
             
    ## tvOS             
    - DESTINATION="OS=12.0,name=Apple TV 4K"                   SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=Apple TV 4K"                   SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=10.2,name=Apple TV 1080p"                SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=9.2,name=Apple TV 1080p"                 SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
                 
    ## watchOS    
    - DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=4.2,name=Apple Watch Series 3 - 42mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=3.2,name=Apple Watch Series 2 - 42mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=2.2,name=Apple Watch - 42mm"             SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO" 
   
before_install:
  - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
  - gem install xcpretty --no-rdoc --no-ri --no-document --quiet

script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -showdestinations -workspace "$WORKSPACE" -scheme "$SCHEME"

  # Build Framework in Debug and Run Tests if specified
  - if [ $RUN_TESTS == "YES" ]; then<commit_msg>Disable CI for 11.4 and 10.3.1 due to bug from Travis CI<commit_after>language: swift
osx_image: xcode10
env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8

    - WORKSPACE=GoogleMaps.xcworkspace

    - DIRECTIONS_IOS_FRAMEWORK_SCHEME="GoogleMapsDirections iOS"
    - DIRECTIONS_MACOS_FRAMEWORK_SCHEME="GoogleMapsDirections macOS"
    - DIRECTIONS_TVOS_FRAMEWORK_SCHEME="GoogleMapsDirections tvOS"
    - DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME="GoogleMapsDirections watchOS"

    - PLACES_IOS_FRAMEWORK_SCHEME="GooglePlaces iOS"
    - PLACES_MACOS_FRAMEWORK_SCHEME="GooglePlaces macOS"
    - PLACES_TVOS_FRAMEWORK_SCHEME="GooglePlaces tvOS"
    - PLACES_WATCHOS_FRAMEWORK_SCHEME="GooglePlaces watchOS"

    - EXAMPLE_SCHEME="iOS Example"

  matrix:
    # GoogleMapsDirections
    ## iOS
    - DESTINATION="OS=12.0,name=iPhone XS Max"                 SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    # - DESTINATION="OS=11.4,name=iPhone X"                      SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    # - DESTINATION="OS=10.3.1,name=iPhone 7 Plus"               SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
    - DESTINATION="OS=9.3,name=iPhone 6s Plus"                 SCHEME="$DIRECTIONS_IOS_FRAMEWORK_SCHEME"        RUN_TESTS="YES"
         
    ## macOS         
    - DESTINATION="arch=x86_64"                                SCHEME="$DIRECTIONS_MACOS_FRAMEWORK_SCHEME"      RUN_TESTS="YES"
         
    ## tvOS         
    - DESTINATION="OS=12.0,name=Apple TV 4K"                   SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=Apple TV 4K"                   SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=10.2,name=Apple TV 1080p"                SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    - DESTINATION="OS=9.2,name=Apple TV 1080p"                 SCHEME="$DIRECTIONS_TVOS_FRAMEWORK_SCHEME"       RUN_TESTS="YES"
    
    ## watchOS
    - DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=4.2,name=Apple Watch Series 3 - 42mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=3.2,name=Apple Watch Series 2 - 42mm"    SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO"
    - DESTINATION="OS=2.2,name=Apple Watch - 42mm"             SCHEME="$DIRECTIONS_WATCHOS_FRAMEWORK_SCHEME"    RUN_TESTS="NO" 

    # GooglePlaces
    ## iOS
    - DESTINATION="OS=12.0,name=iPhone XS Max"                 SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    # - DESTINATION="OS=11.4,name=iPhone X"                      SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    # - DESTINATION="OS=10.3.1,name=iPhone 7 Plus"               SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
    - DESTINATION="OS=9.3,name=iPhone 6s Plus"                 SCHEME="$PLACES_IOS_FRAMEWORK_SCHEME"            RUN_TESTS="YES"
             
    ## macOS             
    - DESTINATION="arch=x86_64"                                SCHEME="$PLACES_MACOS_FRAMEWORK_SCHEME"          RUN_TESTS="YES"
             
    ## tvOS             
    - DESTINATION="OS=12.0,name=Apple TV 4K"                   SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=11.4,name=Apple TV 4K"                   SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=10.2,name=Apple TV 1080p"                SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
    - DESTINATION="OS=9.2,name=Apple TV 1080p"                 SCHEME="$PLACES_TVOS_FRAMEWORK_SCHEME"           RUN_TESTS="YES"
                 
    ## watchOS    
    - DESTINATION="OS=5.0,name=Apple Watch Series 4 - 44mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=4.2,name=Apple Watch Series 3 - 42mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=3.2,name=Apple Watch Series 2 - 42mm"    SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO"
    - DESTINATION="OS=2.2,name=Apple Watch - 42mm"             SCHEME="$PLACES_WATCHOS_FRAMEWORK_SCHEME"        RUN_TESTS="NO" 
   
before_install:
  - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
  - gem install xcpretty --no-rdoc --no-ri --no-document --quiet

script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild -showdestinations -workspace "$WORKSPACE" -scheme "$SCHEME"

  # Build Framework in Debug and Run Tests if specified
  - if [ $RUN_TESTS == "YES" ]; then
{'fraction_non_alphanumeric': 0.1112960266278344, 'fraction_numerical': 0.025795714582899937, 'mean_word_length': 2.6146616541353382, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7164628', 'n_tokens_mistral': 3944, 'n_tokens_neox': 3570, 'n_words': 445}