<commit_before>language: objective-c
osx_image: xcode8
xcode_project: RxHttpClient.xcodeproj

env:
  global:
  #- WORKSPACE=
  - PROJECT=RxHttpClient.xcodeproj
  - FRAMEWORK_SCHEME=RxHttpClient
  - SDK=iphonesimulator10.0
  - DESTINATION_PLATFORM='platform=iOS Simulator,name=iPhone 6,OS=9.3'

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

before_script:
# inslall punic
#- brew install python
#- brew install libyaml
#- pip install --upgrade git+https://github.com/schwa/punic.git

- carthage version
- carthage checkout

# update OHHTTPStubs using carthage
- carthage update OHHTTPStubs --platform iOS
# using punic to build RxSwift framework
#- punic build RxSwift --platform iOS --configuration Release
#build RxSwift
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxSwift-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxCocoa-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxTests-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)

#copy RxSwift frameworks to Carthage/Build folder
- cp -R -f ./Build/Release-iphonesimulator/ ./Carthage/Build

script:
- open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID
#- set -o pipefail && xcodebuild -scheme "$FRAMEWORK_SCHEME" -project "$PROJECT" -sdk "$SDK" -configuration Debug ONLY_ACTIVE_ARCH=YES -destination "$DESTINATION_PLATFORM" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES clean build  | xcpretty -c
- set -o pipefail && xcodebuild -scheme "$FRAMEWORK_SCHEME" -project "$PROJECT" -sdk "$SDK" -configuration Debug ONLY_ACTIVE_ARCH=YES -destination "$DESTINATION_PLATFORM" -enableCodeCoverage YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test  | xcpretty -c

after_success:
  - bash <(curl -s https://codecov.io/bash) -J '^RxHttpClient$'
<commit_msg>Fix destination_platform<commit_after>language: objective-c
osx_image: xcode8
xcode_project: RxHttpClient.xcodeproj

env:
  global:
  #- WORKSPACE=
  - PROJECT=RxHttpClient.xcodeproj
  - FRAMEWORK_SCHEME=RxHttpClient
  - SDK=iphonesimulator10.0
  - DESTINATION_PLATFORM='platform=iOS Simulator,name=iPhone 6s,OS=10.0'

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

before_script:
# inslall punic
#- brew install python
#- brew install libyaml
#- pip install --upgrade git+https://github.com/schwa/punic.git

- carthage version
- carthage checkout

# update OHHTTPStubs using carthage
- carthage update OHHTTPStubs --platform iOS
# using punic to build RxSwift framework
#- punic build RxSwift --platform iOS --configuration Release
#build RxSwift
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxSwift-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxCocoa-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)
- (cd ./Carthage/Checkouts/RxSwift && set -o pipefail && xcodebuild -scheme "RxTests-iOS" -workspace "Rx.xcworkspace" -sdk "$SDK" -configuration Release SYMROOT=../../../Build  | xcpretty -c)

#copy RxSwift frameworks to Carthage/Build folder
- cp -R -f ./Build/Release-iphonesimulator/ ./Carthage/Build

script:
- open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID
#- set -o pipefail && xcodebuild -scheme "$FRAMEWORK_SCHEME" -project "$PROJECT" -sdk "$SDK" -configuration Debug ONLY_ACTIVE_ARCH=YES -destination "$DESTINATION_PLATFORM" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES clean build  | xcpretty -c
- set -o pipefail && xcodebuild -scheme "$FRAMEWORK_SCHEME" -project "$PROJECT" -sdk "$SDK" -configuration Debug ONLY_ACTIVE_ARCH=YES -destination "$DESTINATION_PLATFORM" -enableCodeCoverage YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test  | xcpretty -c

after_success:
  - bash <(curl -s https://codecov.io/bash) -J '^RxHttpClient$'

{'fraction_non_alphanumeric': 0.14243592651394874, 'fraction_numerical': 0.005670220004536176, 'mean_word_length': 4.27511961722488, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3246119', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1564, 'n_words': 377}