<commit_before>language: android
jdk: oraclejdk8
sudo: true
dist: trusty # Use Ubuntu 14.04 as its faster
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - "${TRAVIS_BUILD_DIR}/gradle/caches/"
  - "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
  - "$HOME/.gradle/caches/"
  - "$HOME/.gradle/wrapper/"
  - "$HOME/.android/build-cache"
env:
  global:
  - API_LEVEL=28
  - ANDROID_EMULATOR_API_LEVEL=23
  - ANDROID_BUILD_TOOLS_VERSION=28.0.2
  - ANDROID_ABI=google_apis/armeabi-v7a
  - ADB_INSTALL_TIMEOUT=20
  - ANDROID_TARGET=android-23
  - ANDROID_TAG=google_apis
android:
  components:
  - tools
  - platform-tools
  - tools
  - build-tools-$ANDROID_BUILD_TOOLS_VERSION
  - android-$API_LEVEL
  - android-$ANDROID_EMULATOR_API_LEVEL
  - extra-google-m2repository
  - extra-android-m2repository
  - addon-google_apis-google-$ANDROID_EMULATOR_API_LEVEL
  - sys-img-armeabi-v7a-google_apis-$ANDROID_EMULATOR_API_LEVEL
before_install:
- openssl aes-256-cbc -K $encrypted_275e5b1934bb_key -iv $encrypted_275e5b1934bb_iv
  -in google-services.json.enc -out ./app/google-services.json -d
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- touch ~/.android/repositories.cfg
- yes | sdkmanager "platforms;android-28;system-images;android-23;google_apis;armeabi-v7a" # Temporary fix for checksum mismatch (travis-ci/#8874)
- android list targets
- chmod +x gradlew
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI --tag $ANDROID_TAG
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- travis_retry ./gradlew assembleDebug
- travis_retry ./gradlew assembleDebugAndroidTest<commit_msg>[TRAVIS] Seems like i called sdkmanager wrongly. Fixed<commit_after>language: android
jdk: oraclejdk8
sudo: true
dist: trusty # Use Ubuntu 14.04 as its faster
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - "${TRAVIS_BUILD_DIR}/gradle/caches/"
  - "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
  - "$HOME/.gradle/caches/"
  - "$HOME/.gradle/wrapper/"
  - "$HOME/.android/build-cache"
env:
  global:
  - API_LEVEL=28
  - ANDROID_EMULATOR_API_LEVEL=23
  - ANDROID_BUILD_TOOLS_VERSION=28.0.2
  - ANDROID_ABI=google_apis/armeabi-v7a
  - ADB_INSTALL_TIMEOUT=20
  - ANDROID_TARGET=android-23
  - ANDROID_TAG=google_apis
android:
  components:
  - tools
  - platform-tools
  - tools
  - build-tools-$ANDROID_BUILD_TOOLS_VERSION
  - android-$API_LEVEL
  - android-$ANDROID_EMULATOR_API_LEVEL
  - extra-google-m2repository
  - extra-android-m2repository
  - addon-google_apis-google-$ANDROID_EMULATOR_API_LEVEL
  - sys-img-armeabi-v7a-google_apis-$ANDROID_EMULATOR_API_LEVEL
before_install:
- openssl aes-256-cbc -K $encrypted_275e5b1934bb_key -iv $encrypted_275e5b1934bb_iv
  -in google-services.json.enc -out ./app/google-services.json -d
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- touch ~/.android/repositories.cfg
- yes | sdkmanager "platforms;android-28" "system-images;android-23;google_apis;armeabi-v7a" # Temporary fix for checksum mismatch (travis-ci/#8874)
- android list targets
- chmod +x gradlew
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI --tag $ANDROID_TAG
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- travis_retry ./gradlew assembleDebug
- travis_retry ./gradlew assembleDebugAndroidTest
{'fraction_non_alphanumeric': 0.12465304062578854, 'fraction_numerical': 0.05399949533181933, 'mean_word_length': 4.21578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1292399', 'n_tokens_mistral': 1679, 'n_tokens_neox': 1534, 'n_words': 247}