Skip to content

Commit b944715

Browse files
committed
Add travis test matrix
1 parent 3cc1eeb commit b944715

1 file changed

Lines changed: 21 additions & 14 deletions

File tree

.travis.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,27 @@ jdk: oraclejdk8
44

55
sudo: false
66

7+
env:
8+
global:
9+
MALLOC_ARENA_MAX=1
10+
matrix:
11+
- ANDROID_TARGET=android-28 ANDROID_ABI=x86
12+
- ANDROID_TARGET=android-24 ANDROID_ABI=x86
13+
- ANDROID_TARGET=android-21 ANDROID_ABI=x86
14+
- ANDROID_TARGET=android-19 ANDROID_ABI=x86
15+
- ANDROID_TARGET=android-16 ANDROID_ABI=x86
16+
717
android:
818
components:
919
- tools
10-
- android-27
11-
- build-tools-27.0.3
20+
- android-28
21+
- build-tools-28.0.3
1222
- platform-tools
23+
- extra
1324
- extra-google-m2repository
1425
- extra-android-m2repository
1526
- extra-google-google_play_services
27+
- sys-img-$ANDROID_ABI-$ANDROID_TARGET
1628

1729
before_cache:
1830
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -24,21 +36,16 @@ cache:
2436
- $HOME/.gradle/wrapper/
2537
- $HOME/.android/build-cache
2638

27-
env:
28-
global:
29-
MALLOC_ARENA_MAX=1
30-
3139
install:
3240
- ulimit -s 1082768
3341
- touch app/keys.properties
3442

43+
before_script:
44+
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
45+
- emulator -avd test -no-skin -no-audio -no-window &
46+
- android-wait-for-emulator
47+
- adb shell input keyevent 82 &
48+
3549
script:
36-
- ./gradlew build
50+
- ./gradlew connectedAndroidTest
3751
- ./gradlew assembleStandardRelease --stacktrace
38-
39-
after_failure:
40-
# tests
41-
- cat app/build/reports/tests/testDebugUnitTest/index.html
42-
# app
43-
- cat app/build/reports/lint-results.xml
44-
- cat app/build/reports/lint-results.html

0 commit comments

Comments
 (0)