<commit_before># references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode8.3
language: objective-c
branches:
    only:
        - master
        - travis-ci
before_install:
    - rvm install ruby-2.2.2
    - gem install cocoapods
    - gem install xcpretty -N
    - pod install --project-directory=Example

# xcode_workspace: Example/Trolley.xcworkspace
# xcode_scheme: Trolley-Example
# xcode_sdk: iphonesimulator10.3
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example

script:
    - set -o pipefail && xcodebuild test -workspace Example/Trolley.xcworkspace -scheme Trolley-Example -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.3.1' ONLY_ACTIVE_ARCH=NO | xcpretty
    - pod lib lint Trolley.podspec --verbose<commit_msg>Attempted workaround for Error 65<commit_after># references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode8.3
language: objective-c
branches:
    only:
        - master
        - travis-ci
before_install:
    - rvm install ruby-2.2.2
    - gem install cocoapods
    - gem install xcpretty -N
    - pod install --project-directory=Example
    - gem install simctl --no-rdoc --no-ri --no-document --quiet
    - ruby -rsimctl -e 'SimCtl.warmup("iPhone 6", "iOS 10.1", 300)'

# xcode_workspace: Example/Trolley.xcworkspace
# xcode_scheme: Trolley-Example
# xcode_sdk: iphonesimulator10.3
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example

script:
    - set -o pipefail && travis_retry xcodebuild test -workspace Example/Trolley.xcworkspace -scheme Trolley-Example -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.3.1' ONLY_ACTIVE_ARCH=NO | xcpretty
    - pod lib lint Trolley.podspec --verbose
{'fraction_non_alphanumeric': 0.11215415019762846, 'fraction_numerical': 0.018280632411067192, 'mean_word_length': 3.581447963800905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2672015', 'n_tokens_mistral': 736, 'n_tokens_neox': 697, 'n_words': 163}