-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (58 loc) · 2.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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:
- ADB_INSTALL_TIMEOUT=16
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- android-22
- sys-img-armeabi-v7a-android-22
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- openssl aes-256-cbc -K $encrypted_0e873652172f_key -iv $encrypted_0e873652172f_iv
-in moodtracker-c5e22-firebase-adminsdk-lssd3-ff7056ba07.json.enc -out moodtracker-c5e22-firebase-adminsdk-lssd3-ff7056ba07.json
-d
- yes | sdkmanager "build-tools;28.0.3"
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a -c
32M
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb devices
- 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
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; 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-lssd3@moodtracker-c5e22.iam.gserviceaccount.com --key-file=moodtracker-c5e22-firebase-adminsdk-lssd3-ff7056ba07.json --project=moodtracker-c5e22
script:
#- "./gradlew connectedCheck"
- ./gradlew clean build connectedCheck -PdisablePreDex --stacktrace
- ./gradlew build assembleDebug
- gcloud components update
- gcloud firebase test android run --app app/build/outputs/apk/debug/app-debug.apk --type=robo --device model=Nexus4,version=19
#branches:
# only:
# - develop