2018-11-23 05:38:55 -06:00
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2019-09-12 09:36:32 -05:00
|
|
|
- ANDROID_API_LEVEL=29
|
2020-02-28 19:37:58 -06:00
|
|
|
- ANDROID_BUILD_TOOLS_VERSION=29.0.3
|
2018-11-23 05:38:55 -06:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
|
2019-06-07 07:12:52 -05:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
2020-04-23 12:24:49 -05:00
|
|
|
- 0.17.4
|
2019-01-25 13:41:03 -06:00
|
|
|
|
2018-11-23 05:38:55 -06:00
|
|
|
android:
|
|
|
|
licenses:
|
|
|
|
- android-sdk-preview-license-.+
|
|
|
|
- android-sdk-license-.+
|
|
|
|
- google-gdk-license-.+
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
|
|
|
# The BuildTools version used by your project
|
|
|
|
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
|
|
|
|
# The SDK version used to compile your project
|
|
|
|
- android-$ANDROID_API_LEVEL
|
|
|
|
# Additional components
|
|
|
|
- extra-google-google_play_services
|
|
|
|
- extra-google-m2repository
|
|
|
|
- extra-android-m2repository
|
|
|
|
- addon-google_apis-google-$ANDROID_API_LEVEL
|
|
|
|
# Android emulator
|
2019-10-05 15:32:55 -05:00
|
|
|
- android-22
|
|
|
|
- sys-img-armeabi-v7a-android-22
|
2018-11-23 05:38:55 -06:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
# Launch emulator before the execution
|
2019-10-05 15:32:55 -05:00
|
|
|
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
|
2018-11-23 05:38:55 -06:00
|
|
|
- emulator -avd test -no-audio -no-window &
|
|
|
|
- android-wait-for-emulator
|
|
|
|
- adb shell input keyevent 82 &
|
|
|
|
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
|
|
|
|
|
|
|
|
script:
|
2019-01-25 13:54:27 -06:00
|
|
|
- ./gradlew dependencies --stacktrace --daemon
|
2018-11-23 05:38:55 -06:00
|
|
|
- fossa --no-ansi || true
|
2020-05-01 12:00:42 -05:00
|
|
|
- ./gradlew -Pcoverage testPlayDebugUnitTest --stacktrace --daemon
|
2020-02-29 16:07:47 -06:00
|
|
|
- ./gradlew -Pcoverage createFdroidDebugCoverageReport --stacktrace --daemon
|
|
|
|
- ./gradlew -Pcoverage jacocoTestReport --stacktrace --daemon
|
2018-11-23 05:38:55 -06:00
|
|
|
- |
|
|
|
|
if [ $TRAVIS_TAG ]; then
|
2018-12-13 17:20:54 -06:00
|
|
|
gpg --yes --batch --passphrase=$SERVICES_ENCRYPT_KEY ./app/src/release/google-services.json.gpg;
|
2018-12-16 17:44:25 -06:00
|
|
|
gpg --yes --batch --passphrase=$ENCRYPT_KEY ./app/key.p12.gpg;
|
|
|
|
gpg --yes --batch --passphrase=$ENCRYPT_KEY ./app/upload-key.jks.gpg;
|
2020-05-01 12:00:42 -05:00
|
|
|
./gradlew publishPlayRelease -PenableFirebase --stacktrace;
|
2018-11-23 05:38:55 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|