mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* Encrypt keystore * Modify build.gradle to add signing configs for env vars * Fixed keystore name * Remove encrypted file that is causing build errors * Add encrypted keystore again * Remove failed keystore again... * Add keystore encrypted by Nicolas * Modify env var names for key and iv
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
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
|