<commit_before>env:
  global:
    - JAVA_HOME=/usr/lib/jvm/java-8-oracle
    - APP_VERSION=$TRAVIS_TAG
    - PACKAGE_NAME=org.phidatalab.radar_armt
    - PROJECT_NAME=RADAR-base/RADAR-Questionnaire
  matrix:
    secure: <KEY>ZXwXM4G43R8/7ZedlkKkF5OswtdBQE=
dist: trusty
sudo: required
language: android
android:
  components:
    - tools
    - platform-tools
    - tools
    - build-tools-28.0.3
    - android-28
    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository
addons:
  apt:
    sources:
      - sourceline: deb https://dl.yarnpkg.com/debian/ stable main
        key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
      - sourceline: deb http://dl.google.com/linux/chrome/deb/ stable main
        key_url: https://dl-ssl.google.com/linux/linux_signing_key.pub
    packages:
      - yarn
      - jq
      - gradle
      - google-chrome-stable
licenses:
  - android-sdk-preview-license-.+
  - android-sdk-license-.+
  - google-gdk-license-.+
cache:
  yarn: true
  directories:
    - $HOME/.gradle/caches/jars-1
    - $HOME/.gradle/caches/jars-2
    - $HOME/.gradle/caches/jars-3
    - $HOME/.gradle/caches/modules-2/files-2.1/
    - $HOME/.gradle/native
    - $HOME/.gradle/wrapper
before_install:
  - touch ~/.android/repositories.cfg
  - echo y | sdkmanager --update
  - nvm install 11
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3
  - export PATH="$HOME/.yarn/bin:$PATH"
  - openssl aes-256-cbc -K $encrypted_b7f1c4c89cb5_key -iv $encrypted_b7f1c4c89cb5_iv
    -in secrets.tar.enc -out secrets.tar -d
  - tar xvf secrets.tar
  - gem install fastlane
  - yarn global add cordova
  - yarn global add ionic
before_script:
  - mkdir www
  - cp secret.ts src/assets/data/secret.ts
script:
  - yarn install
  - yarn run lint
  - yarn run lint:css
  - if [[ $TRAVIS_BRANCH != $TRAVIS_TAG ]]; then yarn build ; fi
  - if [[ $TRAVIS_BRANCH == $TRAVIS_TAG ]]; then cordova prepare;
    yarn install;
    ionic cordova build --release android;
    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -storepass $storepass -keystore radar-armt-release-key.keystore $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk alias_name;
    $ANDROID_HOME/build-tools/28.0.3/zipalign -v 4 $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/radar-armt-app-$APP_VERSION.apk;
    fastlane supply --apk $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/radar-armt-app-$APP_VERSION.apk --track alpha --json_key service-api.json --package_name $PACKAGE_NAME
    ; fi
#
# DOCUMENTATION:

# ENCRYPTED:
# secrets.tar:
# - secret.ts
# - google-services.json
# - service-api.json
# - radar-armt-release-key.keystore
# storepass ev
<commit_msg>fix: update travis.yml to include test<commit_after>env:
  global:
    - JAVA_HOME=/usr/lib/jvm/java-8-oracle
    - APP_VERSION=$TRAVIS_TAG
    - PACKAGE_NAME=org.phidatalab.radar_armt
    - PROJECT_NAME=RADAR-base/RADAR-Questionnaire
  matrix:
    secure: m8xkdQA8dhCgufxe1URYqeTuN55E5XzU22DmAJIpMvDhU3v7UfIYzTYCRJWBHxCHvi8rF3oh7ajfthVr763ZyJUSLuZ1kg1y1VTqAMedAdqr6LvGCOayBK7wxgHRPCNsIyHijxDChHB90mrPIbu6BkLMH4D94m+O1ishEoifMxwGEVp80/ftKfhkbXdyG8WBrgLLfGwTlK0xqprOAJGUelkYXCq7jZGzN3cf5kkAze+cEWa/2PAKdBlMmnLKuh6YEGzbRYNtQEr7QChCGizXVkoAuEv+OShSHwzhy7f4juSDQRyWDW92REJu+fO3vs+iuBG6BD7TzWb7HsqUzbmrnirnFYfMv/U/PYEnIaa9q91dqpqVaI2ZQ+1dHX66VppYaE4PbfMTXPls7qZfvGX94MtC2K5TQdJUCKNPZhWESJTS2UgwVfTAzMVpJvjd9vOfiiVcFo6qw4Lo04kv44M2p8Ivd7BIf0w2LsNayPnNb6kffcYUnchGruHiPPduKJXOTVE2R7MxlXjq6epIS7Onr4QNapmHf3HY/qWKTsLBSVkrngELOvQ9bwY3cChulXGMN7bXGrpPjkrYS8uaDb0k+qKftEM/MSKlLnsTAcdbPIj2aQF2L/mzP6d7MvaZJGziIIj4Ex6dnD2MhZXwXM4G43R8/7ZedlkKkF5OswtdBQE=
dist: trusty
sudo: required
language: android
android:
  components:
    - tools
    - platform-tools
    - tools
    - build-tools-28.0.3
    - android-28
    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository
addons:
  apt:
    sources:
      - sourceline: deb https://dl.yarnpkg.com/debian/ stable main
        key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
      - sourceline: deb http://dl.google.com/linux/chrome/deb/ stable main
        key_url: https://dl-ssl.google.com/linux/linux_signing_key.pub
    packages:
      - yarn
      - jq
      - gradle
      - google-chrome-stable
licenses:
  - android-sdk-preview-license-.+
  - android-sdk-license-.+
  - google-gdk-license-.+
cache:
  yarn: true
  directories:
    - $HOME/.gradle/caches/jars-1
    - $HOME/.gradle/caches/jars-2
    - $HOME/.gradle/caches/jars-3
    - $HOME/.gradle/caches/modules-2/files-2.1/
    - $HOME/.gradle/native
    - $HOME/.gradle/wrapper
before_install:
  - touch ~/.android/repositories.cfg
  - echo y | sdkmanager --update
  - nvm install 11
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3
  - export PATH="$HOME/.yarn/bin:$PATH"
  - openssl aes-256-cbc -K $encrypted_b7f1c4c89cb5_key -iv $encrypted_b7f1c4c89cb5_iv
    -in secrets.tar.enc -out secrets.tar -d
  - tar xvf secrets.tar
  - gem install fastlane
  - yarn global add cordova
  - yarn global add ionic
before_script:
  - mkdir www
  - cp secret.ts src/assets/data/secret.ts
script:
  - yarn install
  - yarn run lint
  - yarn run lint:css
  - yarn test
  - if [[ $TRAVIS_BRANCH != $TRAVIS_TAG ]]; then yarn build ; fi
  - if [[ $TRAVIS_BRANCH == $TRAVIS_TAG ]]; then cordova prepare;
    yarn install;
    ionic cordova build --release android;
    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -storepass $storepass -keystore radar-armt-release-key.keystore $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk alias_name;
    $ANDROID_HOME/build-tools/28.0.3/zipalign -v 4 $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/radar-armt-app-$APP_VERSION.apk;
    fastlane supply --apk $HOME/build/$PROJECT_NAME/platforms/android/app/build/outputs/apk/release/radar-armt-app-$APP_VERSION.apk --track alpha --json_key service-api.json --package_name $PACKAGE_NAME
    ; fi
#
# DOCUMENTATION:

# ENCRYPTED:
# secrets.tar:
# - secret.ts
# - google-services.json
# - service-api.json
# - radar-armt-release-key.keystore
# storepass ev

{'fraction_non_alphanumeric': 0.1223954313937336, 'fraction_numerical': 0.02917116839018367, 'mean_word_length': 3.314247669773635, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 8, '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': '284202', 'n_tokens_mistral': 2803, 'n_tokens_neox': 2633, 'n_words': 363}