<commit_before>language: android
branches:
  only:
    - master
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
notifications:
  irc: irc.freenode.org#feedhenry
android:
  components:
  - platform-tools
  - tools
  - build-tools-21.1.1
  - android-21
  - android-19
env:
  global:
  - RELEASE_VERSION=$(grep "<version>" fh-android-sdk/pom.xml | tr "\n" ":" | cut -d ':' -f1 | sed s/\<version\>//g| sed s/\"//g| sed s/\<\\/version\>//g | tr -d ' ')
  - ARTIFACTS_BUCKET=fh-sdks-artifacts
  - ARTIFACTS_PERMISSIONS=public-read
  - ARTIFACTS_S3_REGION=eu-west-1
  - ARTIFACTS_WORKING_DIR=./fh-android-sdk/target
  - secure: <KEY>
  - secure: <KEY>
  matrix:
  - ANDROID_SDK=android-21 ANDROID_EMULATOR=android-19 ANDROID_ABI=armeabi-v7a
addons:
  artifacts:
    paths:
    - fh-android-sdk-$RELEASE_VERSION.jar
    - fh-android-sdk-$RELEASE_VERSION.aar
    debug: true
before_install:
- git clone git://github.com/mosabua/maven-android-sdk-deployer.git
- cd $PWD/maven-android-sdk-deployer/platforms/$ANDROID_SDK
- mvn  install -N --quiet
- cd -
before_script:
- echo no | android create avd --force -n test -t $ANDROID_EMULATOR --abi $ANDROID_ABI
script:
- set -ev
- mvn install -Drelease
- cd fh-android-sdk-test
- mvn package -DskipTests=true;
- emulator -avd test -no-skin -no-audio -no-window&
- wget https://raw.githubusercontent.com/travis-ci/travis-cookbooks/master/ci_environment/android-sdk/files/default/android-wait-for-emulator
- chmod a+x ./android-wait-for-emulator
- "./android-wait-for-emulator"
- adb shell input keyevent 82
- adb shell df
- adb install target/fh-android-sdk-test-$RELEASE_VERSION.apk
- mvn android:instrument
<commit_msg>use github releases instead<commit_after>language: android
branches:
  only:
    - master
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
notifications:
  irc: irc.freenode.org#feedhenry
android:
  components:
  - platform-tools
  - tools
  - build-tools-21.1.1
  - android-21
  - android-19
env:
  global:
  - RELEASE_VERSION=$(grep "<version>" fh-android-sdk/pom.xml | tr "\n" ":" | cut -d ':' -f1 | sed s/\<version\>//g| sed s/\"//g| sed s/\<\\/version\>//g | tr -d ' ')
  matrix:
  - ANDROID_SDK=android-21 ANDROID_EMULATOR=android-19 ANDROID_ABI=armeabi-v7a
before_install:
- git clone git://github.com/mosabua/maven-android-sdk-deployer.git
- cd $PWD/maven-android-sdk-deployer/platforms/$ANDROID_SDK
- mvn  install -N --quiet
- cd -
before_script:
- echo no | android create avd --force -n test -t $ANDROID_EMULATOR --abi $ANDROID_ABI
script:
- set -ev
- mvn install -Drelease
- cd fh-android-sdk-test
- mvn package -DskipTests=true;
- emulator -avd test -no-skin -no-audio -no-window&
- wget https://raw.githubusercontent.com/travis-ci/travis-cookbooks/master/ci_environment/android-sdk/files/default/android-wait-for-emulator
- chmod a+x ./android-wait-for-emulator
- "./android-wait-for-emulator"
- adb shell input keyevent 82
- adb shell df
- adb install target/fh-android-sdk-test-$RELEASE_VERSION.apk
- mvn android:instrument
deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file:
    - fh-android-sdk/target/fh-android-sdk-$RELEASE_VERSION.jar
    - fh-android-sdk/target/fh-android-sdk-$RELEASE_VERSION.aar
  skip_cleanup: true
  on:
    tags: true
    repo: feedhenry/fh-android-sdk
    jdk: oraclejdk7

{'fraction_non_alphanumeric': 0.1470048899755501, 'fraction_numerical': 0.012530562347188265, 'mean_word_length': 3.26171875, 'pattern_counts': {'":': 2, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6758084', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1278, 'n_words': 238}