forked from AniTrend/anitrend-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (44 loc) · 1.25 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
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- TRAVIS_SECURE_ENV_VARS=true
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# system images
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
- sys-img-x86-android-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-android-21
# extras
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
# 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/
# Move our test play-services configuration to the appropreiate config location
before_script:
- mv app/.travic-ci/google-services.json app/google-services.json
- mv app/.travic-ci/secrets ./secrets.properties
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./gradlew test
before_install:
- chmod +x gradlew
- yes | sdkmanager "platforms;android-28"