-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (52 loc) · 1.54 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
language: android
jdk: oraclejdk8
dist: trusty
sudo: false
env:
global:
- ANDROID_API_LEVEL=29
- ANDROID_BUILD_TOOLS_VERSION=29.0.3
- TRAVIS_SECURE_ENV_VARS=true
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# 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
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
- sys-img-x86-android-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-android-17
# addons
- addon-google_apis-google-$ANDROID_API_LEVEL
# The SDK version used to compile your project
- android-$ANDROID_API_LEVEL
licenses:
- '.+'
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/.android/build-cache
before_script:
- chmod +x ./scripts/configuration.sh
- ./scripts/configuration.sh
script:
- ./gradlew test
before_install:
- chmod +x gradlew
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "build-tools;28.0.3"