<commit_before>language: objective-c

before_install:
- brew tap caskroom/versions
- brew cask install java8
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home
- ls -la /Library/Java/JavaVirtualMachines
- wget http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
- unzip android-sdk_r24.4.1-macosx.zip
- export ANDROID_HOME=$PWD/android-sdk-macosx
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-23 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-24 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-25 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-27 --no-ui --force > /dev/null
- echo yes | android update sdk --filter build-tools-27.0.3 --all --no-ui --force > /dev/null
- echo yes | android update sdk --filter sysimg-27 --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null

install:
  - nvm install 8.3 --reinstall-packages-from=node
  - npm install -g react-native-cli

script:
  - react-native init AwesomeProject
  - cd AwesomeProject
  - npm install ../
  - react-native link
  - git apply ../misc/testfairy.patch
  - cd android
  - ./gradlew assembleDebug
  - cd ../ios
  - xcrun xcodebuild -project AwesomeProject.xcodeproj -scheme AwesomeProject -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

before_deploy:
  - cd ../..
  - rm -rf AwesomeProject
  - sed -i'' "s/\"version\":.*/\"version\":\"${TRAVIS_TAG}\",/g" package.json

deploy:
  provider: npm
  email: <EMAIL>
  api_key:
    secure: <KEY>
  on:
    tags: true
    repo: testfairy/react-native-testfairy<commit_msg>Because travis wont let me output too much<commit_after>language: objective-c

before_install:
- brew tap caskroom/versions
- brew cask install java8
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home
- ls -la /Library/Java/JavaVirtualMachines
- wget http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
- unzip android-sdk_r24.4.1-macosx.zip
- export ANDROID_HOME=$PWD/android-sdk-macosx
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-23 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-24 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-25 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-27 --no-ui --force > /dev/null
- echo yes | android update sdk --filter build-tools-27.0.3 --all --no-ui --force > /dev/null
- echo yes | android update sdk --filter sysimg-27 --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null

install:
  - nvm install 8.3 --reinstall-packages-from=node
  - npm install -g react-native-cli
  - gem install xcpretty

script:
  - react-native init AwesomeProject
  - cd AwesomeProject
  - npm install ../
  - react-native link
  - git apply ../misc/testfairy.patch
  - cd android
  - ./gradlew assembleDebug
  - cd ../ios
  - xcrun xcodebuild -project AwesomeProject.xcodeproj -scheme AwesomeProject -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty

before_deploy:
  - cd ../..
  - rm -rf AwesomeProject
  - sed -i'' "s/\"version\":.*/\"version\":\"${TRAVIS_TAG}\",/g" package.json

deploy:
  provider: npm
  email: <EMAIL>
  api_key:
    secure: <KEY>
  on:
    tags: true
    repo: testfairy/react-native-testfairy
{'fraction_non_alphanumeric': 0.145985401459854, 'fraction_numerical': 0.01610873395419079, 'mean_word_length': 2.9859578736208627, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 25, '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': '1910216', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1356, 'n_words': 358}