<commit_before>language: android

notifications:
  email:
    -  <EMAIL> 

env:
  global:
    - TERM=dumb
    - ANDROID_API_LEVEL=23
    - ANDROID_API_EMULATOR_LEVEL=23
    - ANDROID_BUILD_TOOLS_VERSION=23.0.1
    - ANDROID_ABI=armeabi-v7a
    - ANDROID_SDK_HOME=${TRAVIS_BUILD_DIR}
    - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)         
    - INSTALL_TIMEOUT=8 # minutes        

sudo: false

jdk:
#  - oraclejdk7
  - oraclejdk8

addons:
  apt:
    packages:
      - oracle-java8-installer

android:
  components:
    # Uncomment the lines below if you want to
    # use the latest revision of Android SDK Tools
#    - platform-tools
#    - tools

    # The BuildTools version used by your project
    - build-tools-$ANDROID_BUILD_TOOLS_VERSION

    # The SDK version used to compile your project
    - android-$ANDROID_API_LEVEL

    # Additional components
#    - extra-google-google_play_services
#    - extra-google-m2repository
#    - extra-android-m2repository
#    - addon-google_apis-google-19

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    - sys-img-$ANDROID_ABI-android-$ANDROID_API_LEVEL
#    - extra
#    - add-on
#    - extra-android-support
#    - extra-android-m2repository

  licenses:
    - 'android-sdk-license-.+'
    - 'google-gdk-license-.+'
#    - 'android-sdk-preview-license-.+'

before-install:
#    - android update sdk -u -a
#    - jdk_switcher use oraclejdk7
#    - sudo apt-get update -qq
#    - if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi
#    - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
    - adb version
    - echo no | android create avd --force -n test -t android-$ANDROID_API_EMULATOR_LEVEL --abi $ANDROID_ABI
    - emulator -avd test -no-skin -no-audio -no-window &

before_script:
#    - adb wait-for-device
    - android-wait-for-emulator
#    - adb wait-for-device
#    - while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
#    - sleep 300 # wait an additional 5 minutes for emulator to finish startup
    - adb shell input keyevent 82 &
    - cd ./ReactiveCascade

script:
#    - jdk_switcher use oraclejdk8
    - ./gradlew --info build connectedCheck<commit_msg>Enabling some extras and latest platform-tools and tools<commit_after>language: android

notifications:
  email:
    -  <EMAIL> 

env:
  global:
    - TERM=dumb
    - ANDROID_API_LEVEL=23
    - ANDROID_API_EMULATOR_LEVEL=23
    - ANDROID_BUILD_TOOLS_VERSION=23.0.1
    - ANDROID_ABI=armeabi-v7a
    - ANDROID_SDK_HOME=${TRAVIS_BUILD_DIR}
    - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)         
    - INSTALL_TIMEOUT=8 # minutes        

sudo: false

jdk:
#  - oraclejdk7
  - oraclejdk8

addons:
  apt:
    packages:
      - oracle-java8-installer

android:
  components:
    # Uncomment the lines below if you want to
    # use the latest revision of Android SDK Tools
    - platform-tools
    - tools

    # The BuildTools version used by your project
    - build-tools-$ANDROID_BUILD_TOOLS_VERSION

    # The SDK version used to compile your project
    - android-$ANDROID_API_LEVEL

    # Additional components
#    - extra-google-google_play_services
#    - extra-google-m2repository
#    - extra-android-m2repository
#    - addon-google_apis-google-19

    # Specify at least one system image,
    # if you need to run emulator(s) during your tests
    - sys-img-$ANDROID_ABI-android-$ANDROID_API_LEVEL
#    - extra
#    - add-on
    - extra-android-support
    - extra-android-m2repository

  licenses:
    - 'android-sdk-license-.+'
    - 'google-gdk-license-.+'
#    - 'android-sdk-preview-license-.+'

before-install:
#    - android update sdk -u -a
#    - jdk_switcher use oraclejdk7
#    - sudo apt-get update -qq
#    - if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi
#    - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
    - adb version
    - echo no | android create avd --force -n test -t android-$ANDROID_API_EMULATOR_LEVEL --abi $ANDROID_ABI
    - emulator -avd test -no-skin -no-audio -no-window &

before_script:
#    - adb wait-for-device
    - android-wait-for-emulator
#    - adb wait-for-device
#    - while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
#    - sleep 300 # wait an additional 5 minutes for emulator to finish startup
    - adb shell input keyevent 82 &
    - cd ./ReactiveCascade

script:
#    - jdk_switcher use oraclejdk8
    - ./gradlew --info build connectedCheck
{'fraction_non_alphanumeric': 0.10511425462459195, 'fraction_numerical': 0.018280739934711642, 'mean_word_length': 2.5381062355658197, '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': '283641', 'n_tokens_mistral': 1686, 'n_tokens_neox': 1616, 'n_words': 400}