2015-06-13 22:30:57 +02:00
|
|
|
language: android
|
2019-07-16 06:17:42 +02:00
|
|
|
|
|
|
|
|
jdk: oraclejdk8
|
2016-01-03 23:30:31 +01:00
|
|
|
|
|
|
|
|
# force non-container build
|
|
|
|
|
sudo: required
|
2015-06-14 00:17:48 +02:00
|
|
|
|
2016-07-09 16:49:01 +02:00
|
|
|
android:
|
|
|
|
|
components:
|
2016-08-18 00:51:39 +07:00
|
|
|
- tools
|
2019-07-16 06:17:42 +02:00
|
|
|
- android-28
|
2016-07-09 16:49:01 +02:00
|
|
|
- platform-tools
|
2019-07-16 06:17:42 +02:00
|
|
|
- build-tools-28.0.3
|
2016-07-09 16:49:01 +02:00
|
|
|
- extra-android-support
|
|
|
|
|
- extra-android-m2repository
|
2018-01-22 15:49:40 +01:00
|
|
|
- sys-img-armeabi-v7a-android-27
|
2016-07-09 16:49:01 +02:00
|
|
|
licenses:
|
|
|
|
|
- 'android-sdk-preview-license-52d11cd2'
|
|
|
|
|
- 'android-sdk-license-.+'
|
|
|
|
|
- 'google-gdk-license-.+'
|
2016-07-09 15:12:27 +02:00
|
|
|
|
2015-06-17 04:27:56 +02:00
|
|
|
script:
|
2019-07-16 06:17:42 +02:00
|
|
|
./gradlew --stacktrace testDebug
|
2016-07-09 16:49:01 +02:00
|
|
|
- if [ ${TEST} == "android" ]; then
|
|
|
|
|
echo no | android create avd --force --name test --target $ANDROID_TARGET --abi $ANDROID_ABI;
|
|
|
|
|
emulator -avd test -no-skin -no-audio -no-window &
|
|
|
|
|
android-wait-for-emulator;
|
2016-07-10 20:27:55 +02:00
|
|
|
sleep 10;
|
2016-07-09 16:49:01 +02:00
|
|
|
adb shell svc power stayon true;
|
2016-07-10 20:27:55 +02:00
|
|
|
sleep 5;
|
2016-07-09 16:49:01 +02:00
|
|
|
adb shell input keyevent 82;
|
|
|
|
|
./gradlew --stacktrace connectedFdroidDebugAndroidTest -i;
|
|
|
|
|
fi
|