-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
68 lines (56 loc) · 1.83 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
language: android
env:
global:
- ADB_INSTALL_TIMEOUT=2
- QEMU_AUDIO_DRV=none # Remove audio
android:
components:
# Use the latest revision of Android SDK Tools
- tools
- platform-tools
# The BuildTools version used by the project
- build-tools-28.0.3
# The SDK version used to compile the project
- android-28
# The SDK version used for the Emulator
- android-21
# Additional components
- extra-google-google_play_services
- addon-google_apis-google-28
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-26
- sys-img-armeabi-v7a-android-21
licenses:
- android-sdk-license-.+
- '.+'
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
script:
- ./gradlew clean installDebug
- ./gradlew check
- ./gradlew testDebugUnitTest
- ./gradlew connectedDebugAndroidTest
- ./gradlew test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
before_install:
- yes | sdkmanager "platforms;android-28"
- openssl aes-256-cbc -K $encrypted_ba0dc9df2d17_key -iv $encrypted_ba0dc9df2d17_iv -in google-services.json.enc -out app/google-services.json -d
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache