<commit_before>env:
  global:
    - RCT_NO_LAUNCH_PACKAGER=true

jobs:
  include:

    - stage: test
      env: TYPE=js
      os: linux
      language: generic
      script:
        - ./scripts/travis-fold.sh "npm run test-js"

    - stage: test
      env: TYPE=iOS
      os: osx
      osx_image: xcode9
      language: objective-c
      before_install:
        - source ./scripts/env/env.ios.sh
      script:
        - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
        - ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"

    - stage: test
      env: TYPE=Android
      os: linux
      jdk: oraclejdk8
      language: java
      before_install:
        - source ./scripts/env/env.android.sh
      script:
        - ./scripts/travis-fold.sh "npm run test-unit-android -- --release"
        - ./scripts/travis-fold.sh "npm run test-e2e-android -- --release"
      before_cache:
        - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
        - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
      cache:
        directories:
          - $HOME/.m2
          - $HOME/.gradle/caches/
          - $HOME/.gradle/wrapper/
          - $HOME/.android/build-cache

    - stage: deploy
      if: branch = v2
      env: TYPE=deploy
      os: linux
      language: generic
      script:
          - ./scripts/travis-fold.sh "npm run release"

branches:
  only:
  - master
  - v2

install:
  - nvm install 8
  - ./scripts/travis-fold.sh "npm install"
  - ./scripts/travis-fold.sh "npm run clean"

after_script:
  - echo "BUILD FINISHED"

notifications:
  slack:
    secure: <KEY>
<commit_msg>dont deploy on PRs (#2298)<commit_after>env:
  global:
    - RCT_NO_LAUNCH_PACKAGER=true

jobs:
  include:

    - stage: test
      env: TYPE=js
      os: linux
      language: generic
      script:
        - ./scripts/travis-fold.sh "npm run test-js"

    - stage: test
      env: TYPE=iOS
      os: osx
      osx_image: xcode9
      language: objective-c
      before_install:
        - source ./scripts/env/env.ios.sh
      script:
        - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
        - ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"

    - stage: test
      env: TYPE=Android
      os: linux
      jdk: oraclejdk8
      language: java
      before_install:
        - source ./scripts/env/env.android.sh
      script:
        - ./scripts/travis-fold.sh "npm run test-unit-android -- --release"
        - ./scripts/travis-fold.sh "npm run test-e2e-android -- --release"
      before_cache:
        - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
        - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
      cache:
        directories:
          - $HOME/.m2
          - $HOME/.gradle/caches/
          - $HOME/.gradle/wrapper/
          - $HOME/.android/build-cache

    - stage: deploy
      if: NOT type = pull_request
      env: TYPE=deploy
      os: linux
      language: generic
      script:
          - ./scripts/travis-fold.sh "npm run release"

branches:
  only:
  - master
  - v2

install:
  - nvm install 8
  - ./scripts/travis-fold.sh "npm install"
  - ./scripts/travis-fold.sh "npm run clean"

after_script:
  - echo "BUILD FINISHED"

notifications:
  slack:
    secure: <KEY>

{'fraction_non_alphanumeric': 0.1291015026065624, 'fraction_numerical': 0.007053051211284882, 'mean_word_length': 1.6869851729818781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5657374', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1116, 'n_words': 241}