<commit_before>language: objective-c

branches:
  except:
    - gh-pages

install:
  - gem install xcpretty

env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8
    - FRAMEWORK_NAME="ReSwift"
    - UPDATE_DOCS="false"

matrix:
  include:
    - osx_image: xcode8
      env: SCHEME="macOS"  SDK="macosx10.12"          DESTINATION="arch=x86_64"
    - osx_image: xcode7.3
      env: SCHEME="macOS"  SDK="macosx10.11"          DESTINATION="arch=x86_64"  UPDATE_DOCS="true"
    - osx_image: xcode7.3
      env: SCHEME="iOS"    SDK="iphonesimulator9.3"   DESTINATION="OS=9.3,name=iPhone 6S Plus"
    - osx_image: xcode7.3
      env: SCHEME="tvOS"   SDK="appletvsimulator9.2"  DESTINATION="OS=9.2,name=Apple TV 1080p"

script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild
    -project "$FRAMEWORK_NAME.xcodeproj"
    -scheme "$FRAMEWORK_NAME-$SCHEME"
    -sdk "$SDK"
    -destination "$DESTINATION"
    -configuration Debug
    ONLY_ACTIVE_ARCH=YES
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
    GCC_GENERATE_TEST_COVERAGE_FILES=YES
    test
    | xcpretty -c

after_success:
  - bash <(curl -s https://codecov.io/bash) -J ReSwift
  - test $TRAVIS_PULL_REQUEST == "false" &&
    test $TRAVIS_BRANCH == "master" &&
    test $UPDATE_DOCS == "true" &&
    .scripts/update-gh-pages

before_deploy:
  - carthage build --no-skip-current
  - carthage archive $FRAMEWORK_NAME<commit_msg>[CI] Change Build Configuration to Xcode 8<commit_after>language: objective-c

branches:
  except:
    - gh-pages

install:
  - gem install xcpretty

env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8
    - FRAMEWORK_NAME="ReSwift"
    - UPDATE_DOCS="false"

matrix:
  include:
    - osx_image: xcode8
      env: SCHEME="macOS"  SDK="macosx10.12"          DESTINATION="arch=x86_64"
    - osx_image: xcode8
      env: SCHEME="iOS"    SDK="iphonesimulator10.0"  DESTINATION="OS=10.0,name=iPhone 6S Plus"
    - osx_image: xcode8
      env: SCHEME="tvOS"   SDK="appletvsimulator10.0"  DESTINATION="OS=10.0,name=Apple TV 1080p"

script:
  - set -o pipefail
  - xcodebuild -version
  - xcodebuild -showsdks
  - xcodebuild
    -project "$FRAMEWORK_NAME.xcodeproj"
    -scheme "$FRAMEWORK_NAME-$SCHEME"
    -sdk "$SDK"
    -destination "$DESTINATION"
    -configuration Debug
    ONLY_ACTIVE_ARCH=YES
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
    GCC_GENERATE_TEST_COVERAGE_FILES=YES
    test

after_success:
  - bash <(curl -s https://codecov.io/bash) -J ReSwift
  - test $TRAVIS_PULL_REQUEST == "false" &&
    test $TRAVIS_BRANCH == "master" &&
    test $UPDATE_DOCS == "true" &&
    .scripts/update-gh-pages

before_deploy:
  - carthage build --no-skip-current
  - carthage archive $FRAMEWORK_NAME
{'fraction_non_alphanumeric': 0.12325752017608217, 'fraction_numerical': 0.025311812179016874, 'mean_word_length': 3.119335347432024, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5658302', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1087, 'n_words': 186}