forked from niranjan94/show-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.38 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
language: android
jdk: oraclejdk8
sudo: false
env:
global:
- MALLOC_ARENA_MAX=1
# matrix:
# - API_LEVEL=25 SYS_IMAGE_TAG=google_apis ANDROID_ABI=arm64-v8a
# - API_LEVEL=24 SYS_IMAGE_TAG=google_apis ANDROID_ABI=arm64-v8a
# - API_LEVEL=21 SYS_IMAGE_TAG=google_apis ANDROID_ABI=armeabi-v7a
# - API_LEVEL=19 SYS_IMAGE_TAG=google_apis ANDROID_ABI=armeabi-v7a
# - API_LEVEL=17 SYS_IMAGE_TAG=google_apis ANDROID_ABI=armeabi-v7a
android:
components:
- tools
- android-28
# - android-$API_LEVEL
- build-tools-28.0.3
- platform-tools
- extra
# - sys-img-$ANDROID_ABI-$SYS_IMAGE_TAG-$API_LEVEL
before_cache:
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
#install:
# - ulimit -s 1082768
# - touch app/keys.properties
# - echo no | android create avd --force -n test -t android-$API_LEVEL --abi $ANDROID_ABI --tag $SYS_IMAGE_TAG
# - emulator -avd test -no-skin -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
before_script:
- cp -f app/mock-google-services.json app/google-services.json
- cat app/keys.properties.example | envsubst > app/keys.properties
script:
# - ./gradlew connectedAndroidTest --stacktrace -w
- ./gradlew assembleRelease --stacktrace -w