language: android addons: apt: packages: - w3m env: global: - ANDROID_TARGET=android-22 - ANDROID_ABI=armeabi-v7a - ADB_INSTALL_TIMEOUT=12 jdk: - oraclejdk8 android: components: - tools - platform-tools - build-tools-27.0.3 - extra-google-m2repository - extra-android-m2repository - android-22 - android-27 - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} licenses: - android-sdk-license-.+ before_script: - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI - emulator -avd test -no-audio -no-window -no-boot-anim & - android-wait-for-emulator script: - "./gradlew clean check connectedCheck jacocoTestReport" after_success: - bash <(curl -s https://codecov.io/bash) after_failure: - echo '*** Debug Unit Test Results ***' - w3m -dump ${TRAVIS_BUILD_DIR}/app/build/reports/tests/*/classes/*Test.html - echo '*** Connected Test Results ***' - w3m -dump ${TRAVIS_BUILD_DIR}/app/build/reports/androidTests/connected/flavors/*/*Test.html before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ cache: directories: - "$HOME/.gradle/caches/" - "$HOME/.gradle/wrapper/" before_install: - openssl aes-256-cbc -K $encrypted_7b5c925cc32c_key -iv $encrypted_7b5c925cc32c_iv -in nr-commons.keystore.enc -out nr-commons.keystore -d