<commit_before>
language: objective-c
osx_image: xcode10.2

branches:
    only:
        - master

env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8


before_install:
    - env
    - locale
    - gem install cocoapods --prerelease --no-document --quiet
    - gem install xcpretty --no-document --quiet
    - pod --version
    - xcpretty --version
    - xcodebuild -version
    - xcodebuild -showsdks

script:
    - set -o pipefail

    - echo "Check external deployment platforms"
    - echo "Check CocoaPods CocoaLumberjack.podspec"
    - pod lib lint

    - echo "Check Swift Package manager Package.swift"
    - swift build

    - echo "Build as static library"
    - xcodebuild clean build -workspace Framework/Lumberjack.xcworkspace -scheme 'CocoaLumberjack-Static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Release | xcpretty -c
    - xcodebuild clean build -workspace Framework/Lumberjack.xcworkspace -scheme 'CocoaLumberjack-Static' -sdk macosx -configuration Release | xcpretty -c<commit_msg>deployment: travis swift package test has been added.<commit_after>
language: objective-c
osx_image: xcode10.2

branches:
    only:
        - master

env:
  global:
    - LC_CTYPE=en_US.UTF-8
    - LANG=en_US.UTF-8


before_install:
    - env
    - locale
    - gem install cocoapods --prerelease --no-document --quiet
    - gem install xcpretty --no-document --quiet
    - pod --version
    - xcpretty --version
    - xcodebuild -version
    - xcodebuild -showsdks

script:
    - set -o pipefail

    - echo "Check external deployment platforms"
    - echo "Check CocoaPods CocoaLumberjack.podspec"
    - pod lib lint

    - echo "Check Swift Package manager Package.swift"
    - swift test

    - echo "Build as static library"
    - xcodebuild clean build -workspace Framework/Lumberjack.xcworkspace -scheme 'CocoaLumberjack-Static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Release | xcpretty -c
    - xcodebuild clean build -workspace Framework/Lumberjack.xcworkspace -scheme 'CocoaLumberjack-Static' -sdk macosx -configuration Release | xcpretty -c
{'fraction_non_alphanumeric': 0.08691544638639584, 'fraction_numerical': 0.004723665564478035, 'mean_word_length': 2.8300180831826403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '702139', 'n_tokens_mistral': 717, 'n_tokens_neox': 674, 'n_words': 186}