-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy path.travis.yml
70 lines (56 loc) · 2.13 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
62
63
64
65
66
67
68
69
70
language: android
jdk: oraclejdk8
sudo: required
dist: precise
env:
global:
- ADB_INSTALL_TIMEOUT=15 #Time out to 15 mins
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories: #Cache all dirs under .gradle folder
- $HOME/.gradle/daemon #Cache daemon logs
- $HOME/.gradle/native #Cache library downloaded from the gradle dependency
- $HOME/.gradle/wrapper #Cache the gradle
android:
update_sdk: true
components:
- tools # to get the new `repository-11.xml`
- tools # to install Android SDK tools 25.1.x (x = 6 right now)
- platform-tools
- build-tools-27.0.3
- build-tools-28.0.3
- android-27
# Additional components
- extra-google-m2repository
- extra-android-m2repository
- sys-img-android-21-default/armeabi-v7a
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "build-tools;27.0.3"
- yes | sdkmanager "build-tools;28.0.3"
# Handle the secrets
#- openssl aes-256-cbc -K $encrypted_6ac56f5b3b7e_key -iv $encrypted_6ac56f5b3b7e_iv -in ./misc/secrets.tar.enc -out ./misc/secrets.tar -d
#- cd misc && tar xvf secrets.tar && cd ..
#- mv ./misc/google-services.json ./app/src/release/google-services.json
before_script:
- chmod +x gradlew #Grant permissions
# Create animations
- android list targets
- echo no | android create avd --force --name test --target android-21 --abi default/armeabi-v7a -d "Nexus 6"
# Start emulator
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
# Disable animations
- adb devices
- adb shell settings put global window_animation_scale 0.0
- adb shell settings put global transition_animation_scale 0.0
- adb shell settings put global animator_duration_scale 0.0
- adb shell input keyevent 82 &
script:
# - ./gradlew lint app:assembleDebug jacocoTestReportDebug -PdisablePreDex --stacktrace
after_success:
- bash <(curl -s https://codecov.io/bash)