34 lines
829 B
YAML
34 lines
829 B
YAML
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
# force non-container build
|
|
sudo: required
|
|
|
|
android:
|
|
components:
|
|
- tools
|
|
- android-28
|
|
- platform-tools
|
|
- build-tools-28.0.3
|
|
- extra-android-support
|
|
- extra-android-m2repository
|
|
- sys-img-armeabi-v7a-android-27
|
|
licenses:
|
|
- 'android-sdk-preview-license-52d11cd2'
|
|
- 'android-sdk-license-.+'
|
|
- 'google-gdk-license-.+'
|
|
|
|
script:
|
|
./gradlew --stacktrace testDebug
|
|
- 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;
|
|
sleep 10;
|
|
adb shell svc power stayon true;
|
|
sleep 5;
|
|
adb shell input keyevent 82;
|
|
./gradlew --stacktrace connectedFdroidDebugAndroidTest -i;
|
|
fi
|