Created
October 15, 2018 17:25
-
-
Save IgorB10/4cbdb79553bf6731b1c3e00d381fa1c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: android | |
sudo: required | |
jdk: oraclejdk8 | |
services: | |
- docker | |
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/" | |
- "$HOME/google-cloud-sdk/" | |
env: | |
global: | |
- ANDROID_API=21 | |
- EMULATOR_API=28 | |
- ANDROID_BUILD_TOOLS=28.0.3 | |
- ADB_INSTALL_TIMEOUT=5 | |
android: | |
components: | |
- tools | |
- platform-tools | |
- build-tools-$ANDROID_BUILD_TOOLS | |
- android-$ANDROID_API | |
- android-$EMULATOR_API_LEVEL | |
- extra-google-m2repository | |
- extra-android-m2repository | |
- addon-google_apis-google-19 | |
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL | |
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API_LEVEL | |
licenses: | |
- android-sdk-preview-license-.+ | |
- android-sdk-license-.+ | |
- google-gdk-license-.+ | |
before_install: | |
- yes | sdkmanager "platforms;android-28" | |
- mkdir "$ANDROID_HOME/licenses" || true | |
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | |
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | |
- chmod +x gradlew | |
- ./gradlew dependencies || true | |
- openssl aes-256-cbc -K $encrypted_58c96f0a0494_key -iv $encrypted_58c96f0a0494_iv -in github-stars-1f51a-firebase-adminsdk-x55vy-63ae8ea950.json.enc -out key.json -d | |
before_script: | |
- android list sdk --extended --no-ui --all | |
- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-21,sys-img-x86_64-android-21 | |
- android list targets | |
- echo no | android create avd --force -n test -t android-21 --abi default/armeabi-v7a | |
- emulator -avd test -no-skin -no-audio -no-window & | |
- android-wait-for-emulator | |
- adb shell input keyevent 82 & | |
# gcloud | |
- gcloud version || true | |
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export $CLOUDSDK_CORE_DISABLE_PROMPTS; curl https://sdk.cloud.google.com | bash; fi | |
# Add gcloud to $PATH | |
- source /home/travis/google-cloud-sdk/path.bash.inc | |
- gcloud version | |
# Add gcloud auth | |
- gcloud auth activate-service-account firebase-adminsdk-x55vy@github-stars-1f51a.iam.gserviceaccount.com --key-file=key.json --project=github-stars-1f51a | |
script: | |
- gcloud components update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment