<commit_before>osx_image: xcode8
language: objective-c

# Handle git submodules yourself
# http://stackoverflow.com/a/24600210/805882
git:
    submodules: false

# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
    - bundle install # We need a pre-release CocoaPods version "1.1.0.rc.1"
    - sed -i -e 's/git<EMAIL>:/git:\/\/github.com\//' .gitmodules
    - git submodule update --init
    - sed -i -e 's/<EMAIL>:/git:\/\/github.com\//' ChatSecure/.gitmodules
    - sed -i -e 's/<EMAIL>:/git:\/\/github.com\//' ChatSecure/Podfile
    - sed -i -e 's/<EMAIL>:/git:\/\/github.com\//' Zom/Podfile
    - git submodule update --init --recursive

install:
  - cp Zom/OTRResources/Secrets-template.plist Zom/OTRResources/Secrets.plist
  - git clone https://github.com/ChatSecure/ChatSecure-iOS-Precompiled-Dependencies.git
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/CPAProxyDependencies.zip -d ./ChatSecure/Submodules/CPAProxy/
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/OTRKitDependencies.zip -d ./ChatSecure/Submodules/OTRKit/
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/Pods.zip -d ./ChatSecure

before_script:
  - export COCOAPODS_DISABLE_DETERMINISTIC_UUIDS=1 # https://github.com/CocoaPods/CocoaPods/issues/3850
  - bash copy_podfile.sh
  - bundle exec pod repo update --silent
  - bundle exec pod install --project-directory=ChatSecure
  - bundle exec pod install --project-directory=Zom
  - bundle exec pod update --project-directory=ChatSecure libsqlfs SQLCipher --no-repo-update # Waiting for CocoaPods fix https://github.com/CocoaPods/CocoaPods/pull/5844
  - bundle exec pod update --project-directory=Zom libsqlfs SQLCipher --no-repo-update # Waiting for CocoaPods fix https://github.com/CocoaPods/CocoaPods/pull/5844
script:
  - set -o pipefail
  - cd Zom
  - xcodebuild -workspace Zom.xcworkspace -scheme Zom -sdk iphonesimulator -destination 'name=iPhone 6' build | xcpretty -c

<commit_msg>Travis<commit_after>osx_image: xcode8
language: objective-c

# Handle git submodules yourself
# http://stackoverflow.com/a/24600210/805882
git:
    submodules: false

# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
    - bundle install # We need a pre-release CocoaPods version "1.1.0.rc.1"
    - sed -i -e 's/git@github.<EMAIL>:/git:\/\/github.com\//' .gitmodules
    - git submodule update --init
    - sed -i -e 's/git@github.<EMAIL>:/git:\/\/github.com\//' ChatSecure/.gitmodules
    - sed -i -e 's/git@github.com:/git:\/\/github.com\//' ChatSecure/Podfile
    - sed -i -e 's/git@github.com:/git:\/\/github.com\//' Zom/Podfile
    - git submodule update --init --recursive

install:
  - cp Zom/OTRResources/Secrets-template.plist Zom/OTRResources/Secrets.plist
  - git clone https://github.com/ChatSecure/ChatSecure-iOS-Precompiled-Dependencies.git
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/CPAProxyDependencies.zip -d ./ChatSecure/Submodules/CPAProxy/
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/OTRKitDependencies.zip -d ./ChatSecure/Submodules/OTRKit/
  - unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/Pods.zip -d ./ChatSecure

before_script:
  - export COCOAPODS_DISABLE_DETERMINISTIC_UUIDS=1 # https://github.com/CocoaPods/CocoaPods/issues/3850
  - bash Zom/copy_podfile.sh
  - bundle exec pod repo update --silent
  - bundle exec pod install --project-directory=ChatSecure
  - bundle exec pod install --project-directory=Zom
  - bundle exec pod update --project-directory=ChatSecure libsqlfs SQLCipher --no-repo-update # Waiting for CocoaPods fix https://github.com/CocoaPods/CocoaPods/pull/5844
  - bundle exec pod update --project-directory=Zom libsqlfs SQLCipher --no-repo-update # Waiting for CocoaPods fix https://github.com/CocoaPods/CocoaPods/pull/5844
script:
  - set -o pipefail
  - cd Zom
  - xcodebuild -workspace Zom.xcworkspace -scheme Zom -sdk iphonesimulator -destination 'name=iPhone 6' build | xcpretty -c


{'fraction_non_alphanumeric': 0.13044566850275413, 'fraction_numerical': 0.016524787180771158, 'mean_word_length': 3.4094922737306845, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6454569', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1407, 'n_words': 308}